SECI  1
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events
BeamStatus.xaml.cs
Go to the documentation of this file.
1 using System;
2 using System.Collections.Generic;
3 using System.Linq;
4 using System.Text;
5 using System.Windows;
6 using System.Windows.Controls;
7 using System.Windows.Data;
8 using System.Windows.Documents;
9 using System.Windows.Input;
10 using System.Windows.Media;
11 using System.Windows.Media.Imaging;
12 using System.Windows.Navigation;
13 using System.Windows.Shapes;
14 
15 namespace SeciControls
16 {
20  public partial class BeamStatus : UserControl
21  {
22  public BeamStatus()
23  {
24  InitializeComponent();
25  }
26 
27  private void UserControl_Loaded(object sender, RoutedEventArgs e)
28  {
29  if (!String.IsNullOrEmpty(Seci.Definitions.Status.BeamStatusWebpage))
30  {
31  webDisplayer.Navigate(new Uri(Seci.Definitions.Status.BeamStatusWebpage));
32  }
33  }
34 
35  private void btnBeamCurrent_Click(object sender, RoutedEventArgs e)
36  {
37  webDisplayer.Navigate(new Uri(Seci.Definitions.Status.BeamStatusWebpage));
38  disableSelected(sender);
39  }
40 
41  private void btnTs1Graph_Click(object sender, RoutedEventArgs e)
42  {
43  webDisplayer.Navigate(new Uri(Seci.Definitions.Status.Ts1StatusWebpage));
44  disableSelected(sender);
45  }
46 
47  private void btnTs2Graph_Click(object sender, RoutedEventArgs e)
48  {
49  webDisplayer.Navigate(new Uri(Seci.Definitions.Status.Ts2StatusWebpage));
50  disableSelected(sender);
51  }
52 
53  private void disableSelected(object sender)
54  {
55  btnBeamCurrent.IsEnabled = true;
56  btnTs1Graph.IsEnabled = true;
57  btnTs2Graph.IsEnabled = true;
58 
59  Button temp = sender as Button;
60  if (temp != null)
61  {
62  temp.IsEnabled = false;
63  }
64 
65  }
66 
67  }
68 }
void btnBeamCurrent_Click(object sender, RoutedEventArgs e)
void btnTs2Graph_Click(object sender, RoutedEventArgs e)
void disableSelected(object sender)
void UserControl_Loaded(object sender, RoutedEventArgs e)
Interaction logic for BeamStatus.xaml
void btnTs1Graph_Click(object sender, RoutedEventArgs e)