private void btnUploadConfig_Click(object sender, EventArgs e) { SettingsManager.UploadService = (string)cmbUploadService.SelectedItem; switch (SettingsManager.UploadService) { case "Dropbox": frmDropbox dropboxForm = new frmDropbox(); dropboxForm.Show(); Close(); break; case "Google Drive": frmGoogleDrive googleDriveForm = new frmGoogleDrive(); googleDriveForm.Show(); Close(); break; case "FTP": frmFtp ftpForm = new frmFtp(); ftpForm.Show(); Close(); break; default: frmSchedule scheduleForm = new frmSchedule(); scheduleForm.Show(); Close(); break; } }
private void frmDropbox_FormClosing(object sender, FormClosingEventArgs e) { if (!_dropboxSuccess) { MessageBox.Show("Warning: Dropbox Has Not Been Configured - Your Database Backup Will Not Be Uploaded to Dropbox. If You Need to Configure Dropbox in the Future You Will Need to Re-Run This Configuration Wizard", "SQL Backup", MessageBoxButtons.OK, MessageBoxIcon.Warning); } frmSchedule scheduleForm = new frmSchedule(); scheduleForm.Show(); }
private void frmFtp_FormClosing(object sender, FormClosingEventArgs e) { frmSchedule scheduleForm = new frmSchedule(); scheduleForm.Show(); }