Beispiel #1
0
 public CSettings(CInjectorControl injector_control)
 {
     _injector_control         = injector_control;
     _period_offset            = 0;
     _frequency                = (double)__PERIOD_1S / __PERIOD_BASE;
     _injector_first_settings1 = new CInjectorFirstSettings(this); _injector_settings2 = new CInjectorSettings(this); _injector_settings3 = new CInjectorSettings(this);
 }
Beispiel #2
0
 public MainWindow()
 {
     _injector_control = new CInjectorControl(); _injector_control.Settings.SettingsChanged += () => _injector_control.PushSingleton(new CConnectionFrames.CFrame((byte)CInjectorControl.ECommand.SETTINGS_DATA, _injector_control.Settings.GetBinary()));
     InitializeComponent();
     EventManager.RegisterClassHandler(typeof(TextBox), TextBox.GotFocusEvent, new RoutedEventHandler(TextBox_GotFocus));
     EventManager.RegisterClassHandler(typeof(TextBox), TextBox.PreviewMouseDownEvent, new MouseButtonEventHandler(TextBox_PreviewMouseDown));
     EventManager.RegisterClassHandler(typeof(TextBox), TextBox.PreviewKeyUpEvent, new KeyEventHandler(TextBox_PreviewKeyUpEvent));
 }