Пример #1
0
 private void button1_Click(object sender, EventArgs e)
 {
     MySQLBackUpFTP_ADOPSE.Properties.Settings.Default.sundayJob    = daysLB.GetSelected(0);
     MySQLBackUpFTP_ADOPSE.Properties.Settings.Default.mondayJob    = daysLB.GetSelected(1);
     MySQLBackUpFTP_ADOPSE.Properties.Settings.Default.tuesdayJob   = daysLB.GetSelected(2);
     MySQLBackUpFTP_ADOPSE.Properties.Settings.Default.wednesdayJob = daysLB.GetSelected(3);
     MySQLBackUpFTP_ADOPSE.Properties.Settings.Default.thursdayJob  = daysLB.GetSelected(4);
     MySQLBackUpFTP_ADOPSE.Properties.Settings.Default.fridayJob    = daysLB.GetSelected(5);
     MySQLBackUpFTP_ADOPSE.Properties.Settings.Default.saturdayJob  = daysLB.GetSelected(6);
     MySQLBackUpFTP_ADOPSE.Properties.Settings.Default.hourJob      = Convert.ToInt32(hourNUD.Value);
     MySQLBackUpFTP_ADOPSE.Properties.Settings.Default.minuteJob    = Convert.ToInt32(minuteNUD.Value);
     MySQLBackUpFTP_ADOPSE.Properties.Settings.Default.Save();
     mainWindow.StartScheduler();
     this.Close();
     MainWindow.isScheduleOpen = false;
 }