You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
95 lines
2.7 KiB
95 lines
2.7 KiB
using System; |
|
using System.ComponentModel; |
|
using System.Drawing; |
|
using System.Windows.Forms; |
|
using iMonitorApp.Classes; |
|
using iMonitorApp.Properties; |
|
|
|
namespace iMonitorApp |
|
{ |
|
// Token: 0x02000010 RID: 16 |
|
public partial class PhoneSchedule : Form |
|
{ |
|
// Token: 0x06000070 RID: 112 RVA: 0x00004E90 File Offset: 0x00003090 |
|
public PhoneSchedule() |
|
{ |
|
this.InitializeComponent(); |
|
this.tb_monday.Text = Settings.Default.PhoneMondayTime; |
|
this.tb_tuesday.Text = Settings.Default.PhoneTuesdayTime; |
|
this.tb_wednesday.Text = Settings.Default.PhoneWednesdayTime; |
|
this.tb_thursday.Text = Settings.Default.PhoneThursdayTime; |
|
this.tb_friday.Text = Settings.Default.PhoneFridayTime; |
|
this.tb_saturday.Text = Settings.Default.PhoneSaturdayTime; |
|
this.tb_sunday.Text = Settings.Default.PhoneSundayTime; |
|
} |
|
|
|
// Token: 0x06000071 RID: 113 RVA: 0x00004F50 File Offset: 0x00003150 |
|
private void button1_Click(object sender, EventArgs e) |
|
{ |
|
bool flag = PhoneScheduleCheck.CheckSyntax(DayOfWeek.Monday); |
|
if (flag) |
|
{ |
|
Settings.Default.PhoneMondayTime = this.tb_monday.Text; |
|
bool flag2 = PhoneScheduleCheck.CheckSyntax(DayOfWeek.Tuesday); |
|
if (flag2) |
|
{ |
|
Settings.Default.PhoneTuesdayTime = this.tb_tuesday.Text; |
|
bool flag3 = PhoneScheduleCheck.CheckSyntax(DayOfWeek.Wednesday); |
|
if (flag3) |
|
{ |
|
Settings.Default.PhoneWednesdayTime = this.tb_wednesday.Text; |
|
bool flag4 = PhoneScheduleCheck.CheckSyntax(DayOfWeek.Thursday); |
|
if (flag4) |
|
{ |
|
Settings.Default.PhoneThursdayTime = this.tb_thursday.Text; |
|
bool flag5 = PhoneScheduleCheck.CheckSyntax(DayOfWeek.Friday); |
|
if (flag5) |
|
{ |
|
Settings.Default.PhoneFridayTime = this.tb_friday.Text; |
|
bool flag6 = PhoneScheduleCheck.CheckSyntax(DayOfWeek.Saturday); |
|
if (flag6) |
|
{ |
|
Settings.Default.PhoneSaturdayTime = this.tb_saturday.Text; |
|
bool flag7 = PhoneScheduleCheck.CheckSyntax(DayOfWeek.Sunday); |
|
if (flag7) |
|
{ |
|
Settings.Default.PhoneSundayTime = this.tb_sunday.Text; |
|
MessageBox.Show("Saved"); |
|
} |
|
else |
|
{ |
|
MessageBox.Show("Error in syntax for Sunday"); |
|
} |
|
} |
|
else |
|
{ |
|
MessageBox.Show("Error in syntax for Saturday"); |
|
} |
|
} |
|
else |
|
{ |
|
MessageBox.Show("Error in syntax for Friday"); |
|
} |
|
} |
|
else |
|
{ |
|
MessageBox.Show("Error in syntax for Thursday"); |
|
} |
|
} |
|
else |
|
{ |
|
MessageBox.Show("Error in syntax for Wednesday"); |
|
} |
|
} |
|
else |
|
{ |
|
MessageBox.Show("Error in syntax for Tuesday"); |
|
} |
|
} |
|
else |
|
{ |
|
MessageBox.Show("Error in syntax for Monday"); |
|
} |
|
} |
|
} |
|
}
|
|
|