Esempio n. 1
0
        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);
        }
Esempio n. 2
0
 private void CheckForUpdatesMenuItem_Click(object sender, EventArgs e)
 {
     NewVersionDialog.CheckForUpdatesAsync(this, true);
 }