From a682811ed5884c49b060085935aba79246252965 Mon Sep 17 00:00:00 2001 From: Cheng Zhang Date: Mon, 4 Jul 2016 09:11:00 +0800 Subject: [PATCH] CA-213045: Rework on comments to change string format Signed-off-by: Cheng Zhang --- XenAdmin/Commands/BackupHostCommand.cs | 2 +- XenAdmin/Commands/RestoreHostFromBackupCommand.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/XenAdmin/Commands/BackupHostCommand.cs b/XenAdmin/Commands/BackupHostCommand.cs index adfc9ab55..44e653f98 100644 --- a/XenAdmin/Commands/BackupHostCommand.cs +++ b/XenAdmin/Commands/BackupHostCommand.cs @@ -80,7 +80,7 @@ namespace XenAdmin.Commands { SaveFileDialog dialog = new SaveFileDialog(); dialog.AddExtension = true; - dialog.Filter = string.Format("{0} (*." + Branding.BACKUP + ")|*." + Branding.BACKUP + "|{1} (*.*)|*.*", Messages.XS_BACKUP_FILES, Messages.ALL_FILES); + dialog.Filter = string.Format("{0} (*.{1})|*.{1}|{2} (*.*)|*.*", Messages.XS_BACKUP_FILES, Branding.BACKUP, Messages.ALL_FILES); dialog.FilterIndex = 0; dialog.RestoreDirectory = true; dialog.DefaultExt = Branding.BACKUP; diff --git a/XenAdmin/Commands/RestoreHostFromBackupCommand.cs b/XenAdmin/Commands/RestoreHostFromBackupCommand.cs index 61d766a07..36e834c74 100644 --- a/XenAdmin/Commands/RestoreHostFromBackupCommand.cs +++ b/XenAdmin/Commands/RestoreHostFromBackupCommand.cs @@ -98,7 +98,7 @@ namespace XenAdmin.Commands oldDir = Directory.GetCurrentDirectory(); OpenFileDialog dialog = new OpenFileDialog(); dialog.AddExtension = true; - dialog.Filter = string.Format("{0} (*." + Branding.BACKUP + ")|*." + Branding.BACKUP + "|{1} (*.*)|*.*", Messages.XS_BACKUP_FILES, Messages.ALL_FILES); + dialog.Filter = string.Format("{0} (*.{1})|*.{1}|{2} (*.*)|*.*", Messages.XS_BACKUP_FILES, Branding.BACKUP, Messages.ALL_FILES); dialog.FilterIndex = 0; dialog.RestoreDirectory = true; dialog.DefaultExt = Branding.BACKUP;