private void MainForm_Load(object sender, EventArgs e) { Canvas.MinimapVisible = Settings.ShowMiniMap; var args = Environment.GetCommandLineArgs(); if (args.Length > 1 && File.Exists(args[1])) { try { BeginInvoke((MethodInvoker) delegate { OpenProject(args[1]); }); } catch (Exception) { } } NewVersionDialog.CheckForUpdatesAsync(this, false); }
private void CheckForUpdatesMenuItem_Click(object sender, EventArgs e) { NewVersionDialog.CheckForUpdatesAsync(this, true); }