Example #1
0
 private void End_button_Click(object sender, RoutedEventArgs e)
 {
     MapSecurity.StopTimer();
     Start_button.IsEnabled      = true;
     End_button.IsEnabled        = false;
     DispetcherSwitch1.IsEnabled = true;
     DispetcherSwitch2.IsEnabled = true;
     MapSecurity = new MapSecurity(Correcting1, Correcting2);
     MapSecurity.EnableMonitorSensor(DispetcherSwitch2.IsOn);
     MapSecurity.EnableDetectorTemp(DispetcherSwitch1.IsOn);
 }
Example #2
0
 public MainPage()
 {
     this.InitializeComponent();
     MapSecurity = new MapSecurity(Correcting1, Correcting2);
     DataContext = this;
 }