/// <summary> /// Constructor for this class. /// Requires the specification of the MDI Parent /// form that hosts this window in question. /// </summary> /// <param name="mdiParent">The MDI Parent form, an instance of Base.cs</param> public AboutScreen(Form mdiParent) { // Standard Winforms Initialization InitializeComponent(); // Set the MDI parent MdiParent = mdiParent; // Add to the window list. Bindings.WindowsForms.Add(this); // Add Box Controls SetupDecorationBoxes.FindDecorationControls(this); // Set version borderless_Author.Text = $"Written by Sewer56 ~ (C) 2018 | Compiled on {File.GetLastWriteTime(Assembly.GetExecutingAssembly().Location)}"; // Automatically toggle checkboxes when form shown. // This only needs to be done once and doing it in VisibleChanged can induce location change "flicker". Shown += (sender, args) => { borderless_AutoUpdatesBox.ButtonEnabled = Global.LoaderConfiguration.EnableAutomaticUpdates; borderless_SilentUpdatesBox.ButtonEnabled = Global.LoaderConfiguration.SilentUpdates; borderless_AllowPreReleasesBox.ButtonEnabled = Global.LoaderConfiguration.AllowBetaBuilds; borderless_CloseOnLaunchBox.ButtonEnabled = Global.LoaderConfiguration.ExitAfterLaunch; }; }
/// <summary> /// Constructor for this class. /// Requires the specification of the MDI Parent /// form that hosts this window in question. /// </summary> /// <param name="mdiParent">The MDI Parent form, an instance of Base.cs</param> public ManageScreen(Form mdiParent) { // Standard Winforms Initialization InitializeComponent(); // Set the MDI parent MdiParent = mdiParent; // Add to the window list. Bindings.WindowsForms.Add(this); // Add Box Controls SetupDecorationBoxes.FindDecorationControls(this); }