private void Form1_Shown(object sender, EventArgs e) { // Show welcome dialog: if (FirstStart) { formWelcome.OpenDialog(); } // Check for updates CheckVersion(); // Display "What's new?" dialog if (!IniFiles.Config.GetBool("Preferences", "bIgnoreUpdates", false)) { ShowWhatsNewConditionally(); } IniFiles.Config.Set("General", "sPreviousVersion", Shared.VERSION); // If nxm:// link has been provided, open the mod manager: string[] args = Environment.GetCommandLineArgs(); if (args.Length > 1 && args[1].StartsWith("nxm://")) { this.formMods.OpenUI(); } }
private void Form1_Shown(object sender, EventArgs e) { // Show welcome dialog: if (FirstStart) { FormWelcome.OpenDialog(); } // Check for updates CheckVersion(); // Display "What's new?" dialog if (!IniFiles.Config.GetBool("Preferences", "bIgnoreUpdates", false)) { ShowWhatsNewConditionally(); } IniFiles.Config.Set("General", "sPreviousVersion", Shared.VERSION); }