SECI  1
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events
AdvancedOptions.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 AdvancedOptions : UserControl
21  {
22  //User settings
23  public event EventHandler OnDaeAvailableCheckChanged;
24  public event EventHandler OnVisAvailableCheckChanged;
25  public event EventHandler OnModifyVisCheckChanged;
26  public event EventHandler OnUserCanSaveCheckChanged;
27  public event EventHandler OnHideTabsClicked;
28 
29  //Web dashboard settings
30  public event EventHandler OnWebDashboardEnabledCheckChanged;
31  public event EventHandler OnWebDashboardShowTitleCheckChanged;
32 
33  //General settings
34  public event EventHandler OnUsePythonChanged;
35  public event EventHandler OnTwoGeniesCheckChanged;
36  public event EventHandler OnShowBeamloggerCheckChanged;
37  public event EventHandler OnBigFontsDashboardCheckChanged;
38  public event EventHandler OnJournelViewerCheckChanged;
39  public event EventHandler OnLogBlocksCheckChanged;
40 
41  //Executables
42  public event EventHandler OnAddExeClicked;
43  public event EventHandler OnRemoveExeClicked;
44 
45  //Assoc files
46  public event EventHandler OnAddAssocFileClicked;
47  public event EventHandler OnRemoveAssocFileClicked;
48 
49  //Graphs
50  public event EventHandler OnConfigureGraphsClicked;
51  public event EventHandler OnPlotOnGenieTabCheckChanged;
52 
53  //Sub-Configs
54  public event EventHandler OnAddSubConfigClicked;
55  public event EventHandler OnRemoveSubConfigClicked;
56  public event EventHandler OnEditSubConfigClicked;
57 
58  //Alerts
59  public event EventHandler OnConfigAlertsClicked;
60 
61  public bool? VisAvailable { get { return chkVisAvailable.IsChecked; } set { chkVisAvailable.IsChecked = value; } }
62  public bool? DaeAvailable { get { return chkDaeAvailable.IsChecked; } set { chkDaeAvailable.IsChecked = value; } }
63  public bool? UsePython { get { return chkUsePython.IsChecked; } set { chkUsePython.IsChecked = value; } }
64  public bool? TwoGeniesAvailable { get { return chkTwoGenies.IsChecked; } set { chkTwoGenies.IsChecked = value; } }
65  public bool? PlotOnGenieTab { set { chkPlotOnGenie.IsChecked = value; } }
66  public bool? ShowBeamlogger { get { return chkShowBeamLogger.IsChecked; } set { chkShowBeamLogger.IsChecked = value; } }
67  public bool? BigFontsDashboard { get { return chkBigFontsDashboard.IsChecked; } set { chkBigFontsDashboard.IsChecked = value; } }
68  public bool? ShowJournalViewer { get { return chkJournalViewer.IsChecked; } set { chkJournalViewer.IsChecked = value; } }
69  public bool? ShowWebDashboard { set { chkWebDashEnabled.IsChecked = value; } }
70  public bool? WebDashboardShowTitle { set { chkWebTitleEnabled.IsChecked = value; } }
71  public bool? LogBlocksEnabled { set { chkBlocksLogged.IsChecked = value; } }
72  public bool? PythonAvailable
73  {
74  set
75  {
76  if (value == true)
77  {
78  chkUsePython.IsEnabled = true;
79  }
80  else
81  {
82  chkUsePython.IsEnabled = false;
83  chkUsePython.IsChecked = false;
84  }
85  }
86  }
87 
88  public AdvancedOptions()
89  {
90  InitializeComponent();
91  }
92 
93  private void chkDaeAvailable_CheckChanged(object sender, RoutedEventArgs e)
94  {
95  if (OnDaeAvailableCheckChanged != null)
96  {
97  OnDaeAvailableCheckChanged(sender, e);
98  }
99  }
100 
101  private void chkVisAvailable_CheckChanged(object sender, RoutedEventArgs e)
102  {
103  if (OnVisAvailableCheckChanged != null)
104  {
105  OnVisAvailableCheckChanged(sender, e);
106  }
107  }
108 
109  private void chkModifyVis_CheckChanged(object sender, RoutedEventArgs e)
110  {
111  if (OnModifyVisCheckChanged != null)
112  {
113  OnModifyVisCheckChanged(sender, e);
114  }
115  }
116 
117  private void chkUserCanSave_CheckChanged(object sender, RoutedEventArgs e)
118  {
119  if (OnUserCanSaveCheckChanged != null)
120  {
121  OnUserCanSaveCheckChanged(sender, e);
122  }
123  }
124 
125  private void chkShowBeamLogger_CheckChanged(object sender, RoutedEventArgs e)
126  {
127  if (OnShowBeamloggerCheckChanged != null)
128  {
129  OnShowBeamloggerCheckChanged(sender, e);
130  }
131  }
132 
133  private void chkTwoGenies_CheckChanged(object sender, RoutedEventArgs e)
134  {
135  if (OnTwoGeniesCheckChanged != null)
136  {
137  OnTwoGeniesCheckChanged(sender, e);
138  }
139  }
140 
141  private void chkBigFontsDashboard_CheckChanged(object sender, RoutedEventArgs e)
142  {
144  {
146  }
147  }
148 
149  private void chkJournalViewer_CheckChanged(object sender, RoutedEventArgs e)
150  {
151  if (OnJournelViewerCheckChanged != null)
152  {
153  OnJournelViewerCheckChanged(sender, e);
154  }
155  }
156 
157  private void chkWebDashEnabled_CheckChanged(object sender, RoutedEventArgs e)
158  {
159  if (chkWebTitleEnabled != null)
160  {
161  if (chkWebDashEnabled.IsChecked == true)
162  {
163  chkWebTitleEnabled.IsEnabled = true;
164  }
165  else
166  {
167  chkWebTitleEnabled.IsEnabled = false;
168  }
169  }
170 
172  {
174  }
175  }
176 
177  private void chkWebTitleEnabled_CheckChanged(object sender, RoutedEventArgs e)
178  {
180  {
182  }
183  }
184 
185  private void btnRemoveExe_Click(object sender, RoutedEventArgs e)
186  {
187  if (OnRemoveExeClicked != null)
188  {
189  OnRemoveExeClicked(sender, e);
190  }
191  }
192 
193  private void btnAddExe_Click(object sender, RoutedEventArgs e)
194  {
195  if (OnAddExeClicked != null)
196  {
197  OnAddExeClicked(sender, e);
198  }
199  }
200 
201  private void btnConfigureGraphs_Click(object sender, RoutedEventArgs e)
202  {
203  if (OnConfigureGraphsClicked != null)
204  {
205  OnConfigureGraphsClicked(sender, e);
206  }
207  }
208 
209  private void btnAddAssocFiles_Click(object sender, RoutedEventArgs e)
210  {
211  if (OnAddAssocFileClicked != null)
212  {
213  OnAddAssocFileClicked(sender, e);
214  }
215  }
216 
217  private void btnRemoveAssocFiles_Click(object sender, RoutedEventArgs e)
218  {
219  if (OnRemoveAssocFileClicked != null)
220  {
221  OnRemoveAssocFileClicked(sender, e);
222  }
223  }
224 
225  private void btnAddSubConfig_Click(object sender, RoutedEventArgs e)
226  {
227  if (OnAddSubConfigClicked != null)
228  {
229  OnAddSubConfigClicked(sender, e);
230  }
231  }
232 
233  private void btnRemoveSubConfig_Click(object sender, RoutedEventArgs e)
234  {
235  if (OnRemoveSubConfigClicked != null)
236  {
237  OnRemoveSubConfigClicked(sender, e);
238  }
239  }
240 
241  private void btnEditSubConfig_Click(object sender, RoutedEventArgs e)
242  {
243  if (OnEditSubConfigClicked != null)
244  {
245  OnEditSubConfigClicked(sender, e);
246  }
247  }
248 
249  private void chkPlotOnGenie_CheckChanged(object sender, RoutedEventArgs e)
250  {
251  if (OnPlotOnGenieTabCheckChanged != null)
252  {
253  OnPlotOnGenieTabCheckChanged(sender, e);
254  }
255  }
256 
257  private void btnConfigAlerts_Click(object sender, RoutedEventArgs e)
258  {
259  if (OnConfigAlertsClicked != null)
260  {
261  OnConfigAlertsClicked(sender, e);
262  }
263  }
264 
265  private void btnHideTabs_Click(object sender, RoutedEventArgs e)
266  {
267  if (OnHideTabsClicked != null)
268  {
269  OnHideTabsClicked(sender, e);
270  }
271  }
272 
273  private void chkBlocksLogged_CheckChanged(object sender, RoutedEventArgs e)
274  {
275  if (OnLogBlocksCheckChanged != null)
276  {
277  OnLogBlocksCheckChanged(sender, e);
278  }
279  }
280 
281  private void chkUsePython_CheckChanged(object sender, RoutedEventArgs e)
282  {
283  if (OnUsePythonChanged != null)
284  {
285  OnUsePythonChanged(sender, e);
286  }
287  }
288  }
289 }
void chkWebTitleEnabled_CheckChanged(object sender, RoutedEventArgs e)
EventHandler OnWebDashboardShowTitleCheckChanged
void btnConfigAlerts_Click(object sender, RoutedEventArgs e)
void chkJournalViewer_CheckChanged(object sender, RoutedEventArgs e)
void btnAddExe_Click(object sender, RoutedEventArgs e)
void chkPlotOnGenie_CheckChanged(object sender, RoutedEventArgs e)
void btnRemoveExe_Click(object sender, RoutedEventArgs e)
void chkTwoGenies_CheckChanged(object sender, RoutedEventArgs e)
void chkUsePython_CheckChanged(object sender, RoutedEventArgs e)
void chkVisAvailable_CheckChanged(object sender, RoutedEventArgs e)
void btnEditSubConfig_Click(object sender, RoutedEventArgs e)
void chkBlocksLogged_CheckChanged(object sender, RoutedEventArgs e)
void btnHideTabs_Click(object sender, RoutedEventArgs e)
void chkBigFontsDashboard_CheckChanged(object sender, RoutedEventArgs e)
void chkShowBeamLogger_CheckChanged(object sender, RoutedEventArgs e)
void chkDaeAvailable_CheckChanged(object sender, RoutedEventArgs e)
void btnRemoveSubConfig_Click(object sender, RoutedEventArgs e)
void btnAddSubConfig_Click(object sender, RoutedEventArgs e)
void btnConfigureGraphs_Click(object sender, RoutedEventArgs e)
Interaction logic for AdvancedOptions.xaml
void chkUserCanSave_CheckChanged(object sender, RoutedEventArgs e)
void btnAddAssocFiles_Click(object sender, RoutedEventArgs e)
void btnRemoveAssocFiles_Click(object sender, RoutedEventArgs e)
void chkModifyVis_CheckChanged(object sender, RoutedEventArgs e)
void chkWebDashEnabled_CheckChanged(object sender, RoutedEventArgs e)