2 using System.Collections.Generic;
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;
15 namespace SeciUserInterface.Controls
63 public bool? VisAvailable {
get {
return chkVisAvailable.IsChecked; } set { chkVisAvailable.IsChecked = value; } }
64 public bool? DaeAvailable {
get {
return chkDaeAvailable.IsChecked; } set { chkDaeAvailable.IsChecked = value; } }
65 public bool? UsePython {
get {
return chkUsePython.IsChecked; } set { chkUsePython.IsChecked = value; } }
66 public bool? TwoGeniesAvailable {
get {
return chkTwoGenies.IsChecked; } set { chkTwoGenies.IsChecked = value; } }
67 public bool? PlotOnGenieTab { set { chkPlotOnGenie.IsChecked = value; } }
68 public bool? ShowBeamlogger {
get {
return chkShowBeamLogger.IsChecked; } set { chkShowBeamLogger.IsChecked = value; } }
69 public bool? BigFontsDashboard {
get {
return chkBigFontsDashboard.IsChecked; } set { chkBigFontsDashboard.IsChecked = value; } }
70 public bool? ShowJournalViewer {
get {
return chkJournalViewer.IsChecked; } set { chkJournalViewer.IsChecked = value; } }
71 public bool? ShowWebDashboard { set { chkWebDashEnabled.IsChecked = value; } }
72 public bool? WebDashboardShowTitle { set { chkWebTitleEnabled.IsChecked = value; } }
73 public bool? LogBlocksEnabled { set { chkBlocksLogged.IsChecked = value; } }
74 public bool? ShowLostTime {
get {
return chkShowLostTime.IsChecked; } set { chkShowLostTime.IsChecked = value; } }
76 public bool? PythonAvailable
82 chkUsePython.IsEnabled =
true;
86 chkUsePython.IsEnabled =
false;
87 chkUsePython.IsChecked =
false;
94 InitializeComponent();
100 Binding LoggingBinding =
new Binding();
101 LoggingBinding.Source = _model;
102 LoggingBinding.UpdateSourceTrigger = UpdateSourceTrigger.PropertyChanged;
103 LoggingBinding.Mode = BindingMode.TwoWay;
104 LoggingBinding.Path =
new PropertyPath(
"LogValuesEnabled");
105 chkBlocksLogged.SetBinding(CheckBox.IsCheckedProperty, LoggingBinding);
108 _model.LogValuesEnabled = Properties.Settings.Default.LogBlocks;
114 if (OnDaeAvailableCheckChanged != null)
116 OnDaeAvailableCheckChanged(sender, e);
122 if (OnVisAvailableCheckChanged != null)
124 OnVisAvailableCheckChanged(sender, e);
130 if (OnModifyVisCheckChanged != null)
132 OnModifyVisCheckChanged(sender, e);
138 if (OnUserCanSaveCheckChanged != null)
140 OnUserCanSaveCheckChanged(sender, e);
146 if (OnShowBeamloggerCheckChanged != null)
148 OnShowBeamloggerCheckChanged(sender, e);
154 if (OnTwoGeniesCheckChanged != null)
156 OnTwoGeniesCheckChanged(sender, e);
162 if (OnBigFontsDashboardCheckChanged != null)
164 OnBigFontsDashboardCheckChanged(sender, e);
170 if (OnJournelViewerCheckChanged != null)
172 OnJournelViewerCheckChanged(sender, e);
178 if (chkWebTitleEnabled != null)
180 if (chkWebDashEnabled.IsChecked ==
true)
182 chkWebTitleEnabled.IsEnabled =
true;
186 chkWebTitleEnabled.IsEnabled =
false;
190 if (OnWebDashboardEnabledCheckChanged != null)
192 OnWebDashboardEnabledCheckChanged(sender, e);
198 if (OnWebDashboardShowTitleCheckChanged != null)
200 OnWebDashboardShowTitleCheckChanged(sender, e);
206 if (OnRemoveExeClicked != null)
208 OnRemoveExeClicked(sender, e);
214 if (OnAddExeClicked != null)
216 OnAddExeClicked(sender, e);
222 if (OnConfigureGraphsClicked != null)
224 OnConfigureGraphsClicked(sender, e);
230 if (OnAddAssocFileClicked != null)
232 OnAddAssocFileClicked(sender, e);
238 if (OnRemoveAssocFileClicked != null)
240 OnRemoveAssocFileClicked(sender, e);
246 if (OnAddSubConfigClicked != null)
248 OnAddSubConfigClicked(sender, e);
254 if (OnRemoveSubConfigClicked != null)
256 OnRemoveSubConfigClicked(sender, e);
262 if (OnEditSubConfigClicked != null)
264 OnEditSubConfigClicked(sender, e);
270 if (OnPlotOnGenieTabCheckChanged != null)
272 OnPlotOnGenieTabCheckChanged(sender, e);
278 if (OnConfigAlertsClicked != null)
280 OnConfigAlertsClicked(sender, e);
286 if (OnHideTabsClicked != null)
288 OnHideTabsClicked(sender, e);
294 _model.LogValuesEnabled = (bool)chkBlocksLogged.IsChecked;
299 if (OnUsePythonChanged != null)
301 OnUsePythonChanged(sender, e);
307 if (OnShowLostTimeCheckChanged != null)
309 OnShowLostTimeCheckChanged(sender, e);
void btnConfigAlerts_Click(object sender, RoutedEventArgs e)
void btnRemoveSubConfig_Click(object sender, RoutedEventArgs e)
EventHandler OnJournelViewerCheckChanged
void chkVisAvailable_CheckChanged(object sender, RoutedEventArgs e)
EventHandler OnWebDashboardEnabledCheckChanged
EventHandler OnUserCanSaveCheckChanged
void chkTwoGenies_CheckChanged(object sender, RoutedEventArgs e)
EventHandler OnTwoGeniesCheckChanged
void btnAddAssocFiles_Click(object sender, RoutedEventArgs e)
EventHandler OnModifyVisCheckChanged
EventHandler OnVisAvailableCheckChanged
void btnAddSubConfig_Click(object sender, RoutedEventArgs e)
EventHandler OnConfigAlertsClicked
void chkUsePython_CheckChanged(object sender, RoutedEventArgs e)
void chkBlocksLogged_CheckChanged(object sender, RoutedEventArgs e)
void btnEditSubConfig_Click(object sender, RoutedEventArgs e)
void chkPlotOnGenie_CheckChanged(object sender, RoutedEventArgs e)
void btnConfigureGraphs_Click(object sender, RoutedEventArgs e)
void chkShowBeamLogger_CheckChanged(object sender, RoutedEventArgs e)
EventHandler OnAddAssocFileClicked
void chkJournalViewer_CheckChanged(object sender, RoutedEventArgs e)
EventHandler OnEditSubConfigClicked
void btnAddExe_Click(object sender, RoutedEventArgs e)
void btnHideTabs_Click(object sender, RoutedEventArgs e)
Interaction logic for AdvancedOptions.xaml
EventHandler OnPlotOnGenieTabCheckChanged
void chkUserCanSave_CheckChanged(object sender, RoutedEventArgs e)
EventHandler OnAddSubConfigClicked
EventHandler OnRemoveAssocFileClicked
EventHandler OnAddExeClicked
void chkWebTitleEnabled_CheckChanged(object sender, RoutedEventArgs e)
EventHandler OnRemoveSubConfigClicked
EventHandler OnShowBeamloggerCheckChanged
void chkDaeAvailable_CheckChanged(object sender, RoutedEventArgs e)
EventHandler OnHideTabsClicked
EventHandler OnWebDashboardShowTitleCheckChanged
void chkShowLostTime_CheckChanged(object sender, RoutedEventArgs e)
EventHandler OnUsePythonChanged
EventHandler OnBigFontsDashboardCheckChanged
EventHandler OnConfigureGraphsClicked
void chkWebDashEnabled_CheckChanged(object sender, RoutedEventArgs e)
EventHandler OnRemoveExeClicked
EventHandler OnDaeAvailableCheckChanged
void UserControl_Loaded(object sender, RoutedEventArgs e)
void chkBigFontsDashboard_CheckChanged(object sender, RoutedEventArgs e)
void btnRemoveExe_Click(object sender, RoutedEventArgs e)
EventHandler OnShowLostTimeCheckChanged
void btnRemoveAssocFiles_Click(object sender, RoutedEventArgs e)
void chkModifyVis_CheckChanged(object sender, RoutedEventArgs e)