Exemple #1
0
        /// <summary>
        /// Called when the application is loaded
        /// </summary>
        /// <param name="sender">Not used.</param>
        /// <param name="e">Not used.</param>
        private void Master_Load(object sender, EventArgs e)
        {
            ConfigController controller = new ConfigController(this);

            controller.LoadAllValues();

            PluginHandler scanner = new PluginHandler(this);

            scanner.ScanPlugins();
            scanner.ScanDirectories();

            controller.ValidateWoWLocation();
            UpdateRealmSelectionToDefault();
        }
Exemple #2
0
        private void addbutton_Click(object sender, EventArgs e)
        {
            if (!Config.ValidateClient(client.Text))
            {
                return;
            }

            if (!Config.ValidateLocale(locale.Text))
            {
                return;
            }

            master.AddWoWFolder(client.Text, locale.Text, box_location.Text);
            master.ValidateWoWLocation();
            Close();
        }