Adjust main form loading a bit

This commit is contained in:
KillzXGaming 2019-07-16 21:36:08 -04:00
parent 1978197afb
commit dfb41d0d80

View file

@ -48,23 +48,12 @@ namespace Toolbox
public MainForm()
{
FormThemes.ActivePreset = FormThemes.Preset.Dark;
Runtime.MainForm = this;
LoadConfig();
InitializeComponent();
compressionToolStripMenuItem.DropDownItems.AddRange(CompressionMenus.GetMenuItems().ToArray());
//Redo setting this since designer keeps resetting this
tabForms.myBackColor = FormThemes.BaseTheme.FormBackColor;
OnMdiWindowClosed();
ResetMenus();
}
public void Reload()
{
LoadConfig();
SupportedFormats = FileManager.GetFileFormats();
FileMenuExtensions = FileManager.GetMenuExtensions();
}
@ -74,6 +63,17 @@ namespace Toolbox
private void Form1_Load(object sender, EventArgs e)
{
FormThemes.ActivePreset = FormThemes.Preset.Dark;
Runtime.MainForm = this;
compressionToolStripMenuItem.DropDownItems.AddRange(CompressionMenus.GetMenuItems().ToArray());
//Redo setting this since designer keeps resetting this
tabForms.myBackColor = FormThemes.BaseTheme.FormBackColor;
OnMdiWindowClosed();
ResetMenus();
bool HasVersionFile = true;
VersionCheck version = new VersionCheck(HasVersionFile);