Chromatics_Updater.Updater.Main C# (CSharp) Method

Main() private method

private Main ( string args ) : void
args string
return void
        public static void Main(string[] args)
        {
            if (args == null || args.Length == 0)
            {
                MessageBox.Show("You cannot run the updater directly. Please use ACT.", "Chromatics Updater");
                System.Windows.Forms.Application.Exit();
            }
            else
            {
                bool retry = true;
                while (retry == true)
                {
                    if (Process.GetProcessesByName("Advanced Combat Tracker").Length > 0)
                    {
                        DialogResult result = MessageBox.Show("Please close Advanced Combat Tracker to update Chromatics", "Advanced Combat Tracker running", MessageBoxButtons.RetryCancel, MessageBoxIcon.Exclamation);
                        if (result == DialogResult.Cancel)
                        {
                            retry = false;
                            System.Windows.Forms.Application.Exit();
                            break;
                        }
                        retry = true;
                    }
                    else
                    {
                        retry = false;
                        Application.EnableVisualStyles();
                        Application.SetCompatibleTextRenderingDefault(false);
                        Application.Run(new Updater_Form());
                    }
                }

            }
        }
Updater