예제 #1
0
 public GoToDialog()
 {
     this.Owner = Globals.MainForm;
     this.Font  = Globals.Settings.DefaultFont;
     this.InitializeComponent();
     this.ApplyLocalizedTexts();
     ScaleHelper.AdjustForHighDPI(this);
 }
예제 #2
0
 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);
 }
예제 #3
0
 public HashDialog()
 {
     this.Owner          = Globals.MainForm;
     this.Font           = Globals.Settings.DefaultFont;
     this.resultHashText = String.Empty;
     this.InitializeComponent();
     this.ApplyLocalizedTexts();
     ScaleHelper.AdjustForHighDPI(this);
 }
예제 #4
0
 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);
 }
예제 #5
0
 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);
 }
예제 #6
0
 public ArgumentDialog()
 {
     this.Owner = Globals.MainForm;
     this.Font  = Globals.Settings.DefaultFont;
     this.InitializeComponent();
     this.InitializeItemGroups();
     this.InitializeContextMenu();
     this.InitializeGraphics();
     this.ApplyLocalizedTexts();
     ScaleHelper.AdjustForHighDPI(this);
 }
예제 #7
0
 /// <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);
 }