public MainFormController(Form mainForm)
        {
            this._mainForm = (MainForm)mainForm;

            string path = RegistryHelper.GetGamePath();

            if (String.IsNullOrEmpty(path))
            {
                this._mainForm.statusGamePath.Text   = Properties.Resources.TextNotFound;
                this._mainForm.statusGamePath.IsLink = false;
                this._gameInstalled = false;
            }
            else
            {
                this._mainForm.statusGamePath.Text   = path;
                this._mainForm.statusGamePath.IsLink = true;
                this._mainForm.statusGamePath.Click += new EventHandler(delegate(object o, EventArgs e)
                                                                        { System.Diagnostics.Process.Start(path); });
                this._gameInstalled = true;
            }
        }
        public void OpenPbcl()
        {
            string path = "";

            if (this._gameInstalled)
            {
                path = RegistryHelper.GetGamePath();
            }
            else
            {
                DialogResult result = MessageBox.Show("It seems like the game is not installed."
                                                      + Environment.NewLine + Environment.NewLine
                                                      + "Do you want to manually select the folder where you installed the game to?",
                                                      "Not installed", MessageBoxButtons.YesNo, MessageBoxIcon.Warning);
                if (result == DialogResult.No)
                {
                    return;
                }

                result = this._mainForm.folderBrowserDialog1.ShowDialog(this._mainForm);
                if (result == DialogResult.OK)
                {
                    path = this._mainForm.folderBrowserDialog1.SelectedPath;
                }
                else
                {
                    return;
                }
            }

            path = FileSystemHelper.GetPbclPath(path);
            if (String.IsNullOrEmpty(path))
            {
                MessageBox.Show("Could not find PunkBuster logfile: pbcl.log", "Error");
                return;
            }

            System.Diagnostics.Process.Start("notepad.exe", path);
        }