Ejemplo n.º 1
0
		private void BtnBackupAdd_Click(Object sender, EventArgs e)
		{
			BackupDialog bd = new BackupDialog();
			if (bd.ShowDialog() == DialogResult.OK)
				Backup.Reference.AddBackupToXml(bd.Defenition);
			UpdateUi();
		}
Ejemplo n.º 2
0
        private void BtnBackupAdd_Click(Object sender, EventArgs e)
        {
            BackupDialog bd = new BackupDialog();

            if (bd.ShowDialog() == DialogResult.OK)
            {
                Backup.Reference.AddBackupToXml(bd.Defenition);
            }
            UpdateUi();
        }
Ejemplo n.º 3
0
		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();
		}
Ejemplo n.º 4
0
        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();
        }