コード例 #1
0
ファイル: MainForm.cs プロジェクト: matthiaswatkins/trizbort
        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);
        }
コード例 #2
0
ファイル: MainForm.cs プロジェクト: matthiaswatkins/trizbort
 private void CheckForUpdatesMenuItem_Click(object sender, EventArgs e)
 {
     NewVersionDialog.CheckForUpdatesAsync(this, true);
 }