public PatchesForm(string location, Form mainForm, string lblWarcraftVersionName, W3SuperAdminFormBLL configurationBLL)
        {
            _location = location;
            _mainForm = mainForm;
            _lblWarcraftVersionName = lblWarcraftVersionName;
            _configurationBLL       = configurationBLL;

            InitializeComponent();
        }
        private void LoadForm()
        {
            string location = Properties.Settings.Default.WarcraftLocation;

            RegistryKey key = Registry.CurrentUser.OpenSubKey(@"Software\Blizzard Entertainment\Warcraft III");

            //check if the key exists
            if (key == null)
            {
                this.btnManageSettings.Enabled = false;
            }
            else
            {
                key.Dispose();
            }

            w3SuperAdminFormBLL = new W3SuperAdminFormBLL();
            w3SuperAdminFormBLL.PatchesGroupBox = this.managePatchesGroupBox;
            w3SuperAdminFormBLL.CDKeyGroupBox   = this.manageCDKeysGroupBox;
            w3SuperAdminFormBLL.UpdatePathAndButtonsState(location, lblWarcraftVersion.Name, btnChangePatch.Name,
                                                          textBoxWarcraftPath.Name, btnGrabRocCDKey.Name, btnGrabTftCDKey.Name,
                                                          textBoxRocKey.Name, textBoxTftKey.Name, btnChangeRocKey.Name, btnChangeTftKey.Name);
            w3SuperAdminFormBLL.AddSubItemToPlay(location, this.playToolStripMenuItem);
        }