public BackupPath(MainWindow mainWindow) { InitializeComponent(); backupsLocationTB.Text = MySQLBackUpFTP_ADOPSE.Properties.Settings.Default.backupPath; this.mainWindow = mainWindow; this.Visible = true; }
public RemoveDB(string db,MainWindow mainWindow) { InitializeComponent(); this.db = db; this.mainWindow = mainWindow; label1.Text = "Delete \""+db+"\"?"; this.Visible = true; }
public AddDB(MainWindow mainWindow) { InitializeComponent(); this.mainWindow = mainWindow; db = new Database(); db.RaiseConnectionSuccessful += new Database.ConnectionSuccessful(db_OnConnectionSuccessful); db.RaiseConnectionUnsuccessful += new Database.ConnectionUnsuccessful(db_OnConnectionUnsuccessful); this.Visible = true; }
public Schedule(MainWindow mainWindow) { InitializeComponent(); daysLB.SetSelected(0,MySQLBackUpFTP_ADOPSE.Properties.Settings.Default.sundayJob); daysLB.SetSelected(1, MySQLBackUpFTP_ADOPSE.Properties.Settings.Default.mondayJob); daysLB.SetSelected(2, MySQLBackUpFTP_ADOPSE.Properties.Settings.Default.tuesdayJob); daysLB.SetSelected(3, MySQLBackUpFTP_ADOPSE.Properties.Settings.Default.wednesdayJob); daysLB.SetSelected(4, MySQLBackUpFTP_ADOPSE.Properties.Settings.Default.thursdayJob); daysLB.SetSelected(5, MySQLBackUpFTP_ADOPSE.Properties.Settings.Default.fridayJob); daysLB.SetSelected(6, MySQLBackUpFTP_ADOPSE.Properties.Settings.Default.saturdayJob); hourNUD.Value = MySQLBackUpFTP_ADOPSE.Properties.Settings.Default.hourJob; minuteNUD.Value = MySQLBackUpFTP_ADOPSE.Properties.Settings.Default.minuteJob; this.mainWindow = mainWindow; this.Visible = true; }