Skip to content

Commit

Permalink
Handle Launch Arguments
Browse files Browse the repository at this point in the history
Implement code to handle launch arguments.

Co-Authored-By: Ryan Walpole <[email protected]>
  • Loading branch information
RWELabs and RyanWalpole committed Mar 23, 2023
1 parent 9515bef commit 5be54ee
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 5 deletions.
11 changes: 9 additions & 2 deletions src/Moxo QuickWeb/Splash.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 18 additions & 1 deletion src/Moxo QuickWeb/Splash.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,17 @@ public Splash()
InitializeComponent();
string vertext = "Version: " + Properties.Settings.Default.Version + "(" + Properties.Settings.Default.BuildVersion + ")";
Version.Text = vertext;
CheckDirectories();
Properties.Settings.Default.dotLX_tmpICO = null;
Properties.Settings.Default.Save();

if (String.IsNullOrWhiteSpace(Properties.Settings.Default.LaunchArg))
{
CheckDirectories();
}
else
{
StartFileEditor.Start();
}
}

private void CheckDirectories()
Expand Down Expand Up @@ -54,5 +62,14 @@ private void StartApplication_Tick(object sender, EventArgs e)
endpoint.Show();
this.Hide();
}

private void StartFileEditor_Tick(object sender, EventArgs e)
{
StartFileEditor.Stop();

LXEditor endpoint = new LXEditor();
endpoint.Show();
this.Hide();
}
}
}
4 changes: 2 additions & 2 deletions src/Moxo QuickWeb/Update.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5be54ee

Please sign in to comment.