public DialogEditTriggers() { InitializeComponent(); // Attach for form settings persistence formSettingsHandler = new FormSettingsHandler(this); }
public ViewControllers() { InitializeComponent(); formSettingsHandler = new FormSettingsHandler(this); EventBus <EventControllersChanged> .Instance.EventRecieved += OnControllerPlugEvent; this.connectedDeviceInfos = Tube.DirectInputManager.GetConnectedDeviceInfos(); UpdateListView(); }
public ViewButtons() { InitializeComponent(); // Attach for form settings persistence formSettingsHandler = new FormSettingsHandler(this); labelHeadingFormat = labelHeading.Text; SetHeadingText(0); EventBus <EventKeyboard> .Instance.EventRecieved += OnEventKeyboard; }
public DialogHelpAbout() { InitializeComponent(); // Attach for form settings persistence formSettingsHandler = new FormSettingsHandler(this); this.Text = String.Format("About {0}", AssemblyTitle); this.labelProductName.Text = AssemblyProduct; this.labelVersion.Text = String.Format("Version {0}", AssemblyVersion); this.labelCopyright.Text = AssemblyCopyright; this.labelCompanyName.Text = AssemblyCompany; this.textBoxDescription.Text = AssemblyDescription; }
public DialogEditMacros(ReadOnlyDictionary <string, Macro> macros) { // Copying is cleaner OOP, and also allows user to cancel after making mistakes // TODO Deeper copy of macros - all objects referenced should be copied including actions etc. this.macros = new List <Macro>(macros.Values); if (this.macros.Count > 0) { this.macroCurrent = this.macros[0]; } else { this.macroCurrent = null; } InitializeComponent(); // Attach for form settings persistence formSettingsHandler = new FormSettingsHandler(this); }
public ViewQueue() { InitializeComponent(); // Attach for form settings persistence formSettingsHandler = new FormSettingsHandler(this); labelHeadingFormat = labelHeading.Text; SetHeadingText(0); this.listViewActions.VirtualListSize = 0; updateTimer = new Timer { Interval = TIME_UPDATE_FORM_MS, }; updateTimer.Tick += this.OnTimer; updateTimer.Start(); }
public ViewMain() { InitializeComponent(); // Attach for form settings persistence formSettingsHandler = new FormSettingsHandler(this); LogInput = Properties.Settings.Default.LogInput; RawKeyNames = Properties.Settings.Default.RawKeyNames; NormalizeMouseCoords = Properties.Settings.Default.NormalizeMouseCoords; checkBoxLogInput.DataBindings.Add("Checked", this, "logInput", true, DataSourceUpdateMode.OnPropertyChanged); checkBoxRawKeyNames.DataBindings.Add("Checked", this, "rawKeyNames", true, DataSourceUpdateMode.OnPropertyChanged); checkBoxNormalizeMouseCoords.DataBindings.Add("Checked", this, "normalizeMouseCoords", true, DataSourceUpdateMode.OnPropertyChanged); // Cache contents of form caption Text for later output formatting // via SetCaption() to display opened file name baseCaptionText = Text; SetCaption(Tube.FileName); }