예제 #1
0
        private void EditSelectedBackupNote()
        {
            var row = SelectedBackup;

            if (row == null)
            {
                return;
            }

            var dlg = new frmEditNote {
                BackupName = row.Name, BackupNote = row.Note
            };

            if (dlg.ShowDialog() == DialogResult.OK)
            {
                row.Name = dlg.BackupName;
                row.Note = dlg.BackupNote;
                UcBackupViewController.SaveBackupSettings();
            }
        }
예제 #2
0
        private void EditSelectedBackupNote()
        {
            var row = SelectedBackup;
            if (row == null)
                return;

            var dlg = new frmEditNote { BackupName = row.Name, BackupNote = row.Note };
            if (dlg.ShowDialog() == DialogResult.OK)
            {
                row.Name = dlg.BackupName;
                row.Note = dlg.BackupNote;
                UcBackupViewController.SaveBackupSettings();
            }
        }