private void BtnBackupAdd_Click(Object sender, EventArgs e) { BackupDialog bd = new BackupDialog(); if (bd.ShowDialog() == DialogResult.OK) Backup.Reference.AddBackupToXml(bd.Defenition); UpdateUi(); }
private void BtnBackupAdd_Click(Object sender, EventArgs e) { BackupDialog bd = new BackupDialog(); if (bd.ShowDialog() == DialogResult.OK) { Backup.Reference.AddBackupToXml(bd.Defenition); } UpdateUi(); }
private void BtnBackupEdit_Click(Object sender, EventArgs e) { if (SlvBackups.SelectedItems.Count < 1 || SlvBackups.SelectedItems[0] == null) return; BackupDefenition backup = Backup.Reference.GetBackupByName(SlvBackups.SelectedItems[0].SubItems[0].Text); BackupDialog bd = new BackupDialog(backup); if (bd.ShowDialog() == DialogResult.OK) Backup.Reference.SaveBackup(backup, bd.Defenition); UpdateUi(); }
private void BtnBackupEdit_Click(Object sender, EventArgs e) { if (SlvBackups.SelectedItems.Count < 1 || SlvBackups.SelectedItems[0] == null) { return; } BackupDefenition backup = Backup.Reference.GetBackupByName(SlvBackups.SelectedItems[0].SubItems[0].Text); BackupDialog bd = new BackupDialog(backup); if (bd.ShowDialog() == DialogResult.OK) { Backup.Reference.SaveBackup(backup, bd.Defenition); } UpdateUi(); }