Example #1
0
        private void buttonBackup_Click(object sender, EventArgs e)
        {
            //if (listViewDatabases.SelectedItems.Count == 0)
            //{
            //    labelResult.ForeColor = Color.Red;
            //    labelResult.Text = "Select a database in the list above";
            //    return;
            //}

            //folderBrowserDialog.SelectedPath = AppSettings.BackupPath;
            //if (DialogResult.OK != folderBrowserDialog.ShowDialog()) return;

            //AppSettings.BackupPath = folderBrowserDialog.SelectedPath;

            //var sqlDatabase = (SqlDatabaseSettings)listViewDatabases.SelectedItems[0].Tag;

            //groupBoxDatabaseManagement.Enabled = false;
            //labelResult.ForeColor = Color.Black;
            //labelResult.Text = string.Format("Backup database {0} in progress... ", sqlDatabase.Name);

            //bWDatabaseBackup.RunWorkerAsync(sqlDatabase);
            FrmProgress frm = new FrmProgress();

            frm.InitializeTimer();
            frm.ShowDialog();
        }
Example #2
0
        private void buttonBackup_Click(object sender, EventArgs e)
        {
            //if (listViewDatabases.SelectedItems.Count == 0)
            //{
            //    labelResult.ForeColor = Color.Red;
            //    labelResult.Text = "Select a database in the list above";
            //    return;
            //}

            //folderBrowserDialog.SelectedPath = AppSettings.BackupPath;
            //if (DialogResult.OK != folderBrowserDialog.ShowDialog()) return;

            //AppSettings.BackupPath = folderBrowserDialog.SelectedPath;

            //var sqlDatabase = (SqlDatabaseSettings)listViewDatabases.SelectedItems[0].Tag;

            //groupBoxDatabaseManagement.Enabled = false;
            //labelResult.ForeColor = Color.Black;
            //labelResult.Text = string.Format("Backup database {0} in progress... ", sqlDatabase.Name);

            //bWDatabaseBackup.RunWorkerAsync(sqlDatabase);
            FrmProgress frm = new FrmProgress();
            frm.InitializeTimer();
            frm.ShowDialog();
        }