public GoToDialog() { this.Owner = Globals.MainForm; this.Font = Globals.Settings.DefaultFont; this.InitializeComponent(); this.ApplyLocalizedTexts(); ScaleHelper.AdjustForHighDPI(this); }
public SmartForm() { this.formProps = new FormProps(); this.Load += new EventHandler(this.SmartFormLoad); this.FormClosed += new FormClosedEventHandler(this.SmartFormClosed); EventManager.AddEventHandler(this, EventType.ApplyTheme); ScaleHelper.AdjustForHighDPI(this); }
public HashDialog() { this.Owner = Globals.MainForm; this.Font = Globals.Settings.DefaultFont; this.resultHashText = String.Empty; this.InitializeComponent(); this.ApplyLocalizedTexts(); ScaleHelper.AdjustForHighDPI(this); }
public ControlDialog() { this.InitializeComponent(); this.propertyGridEx.SelectedObject = this; this.customTabControl.DisplayStyle = TabStyle.Flat; this.pictureBoxEx.Image = Image.FromStream(ResourceHelper.GetStream("AboutDialog.jpg")); this.Load += new EventHandler(this.OnFormLoad); ScaleHelper.AdjustForHighDPI(this); }
public FRInDocDialog() { this.Owner = Globals.MainForm; this.Font = Globals.Settings.DefaultFont; this.FormGuid = "24910809-a60a-4b7c-8d2a-d53a363f595f"; this.InitializeComponent(); this.InitializeProperties(); this.ApplyLocalizedTexts(); ScaleHelper.AdjustForHighDPI(this); }
public ArgumentDialog() { this.Owner = Globals.MainForm; this.Font = Globals.Settings.DefaultFont; this.InitializeComponent(); this.InitializeItemGroups(); this.InitializeContextMenu(); this.InitializeGraphics(); this.ApplyLocalizedTexts(); ScaleHelper.AdjustForHighDPI(this); }
/// <summary> /// Load the form state from a setting file and applies it /// </summary> private void SmartFormLoad(Object sender, EventArgs e) { ScaleHelper.AdjustForHighDPI(this); if (!String.IsNullOrEmpty(this.formGuid) && File.Exists(this.FormPropsFile)) { Object obj = ObjectSerializer.Deserialize(this.FormPropsFile, this.formProps); this.formProps = (FormProps)obj; if (!this.formProps.WindowSize.IsEmpty) { this.Size = this.formProps.WindowSize; } } if (!String.IsNullOrEmpty(this.helpLink)) { this.HelpButton = true; this.HelpButtonClicked += new System.ComponentModel.CancelEventHandler(this.SmartFormHelpButtonClick); } ApplyProps?.Invoke(this); }