Beispiel #1
0
        public AppSettings()
        {
            InitializeComponent();

            if (IOHelper.CheckWoWPath(Settings.Default.WoWRetailPath))
            {
                textBox1.Text = Settings.Default.WoWRetailPath;
            }
        }
Beispiel #2
0
 private void Main_Load(object sender, EventArgs e)
 {
     if (!IOHelper.CheckWoWPath(Settings.Default.WoWRetailPath))
     {
         OpenChildForm(new UI.AppSettings());
     }
     else
     {
         var form = OpenChildForm(new UI.AddonsList(TwitchConstants.WoWRetail)) as AddonsList;
         form.SearchAddons(this.BackColor);
     }
 }
Beispiel #3
0
        private void RetailOFD_Click(object sender, EventArgs e)
        {
            if (FBD.ShowDialog() == DialogResult.OK)
            {
                var newPath = FBD.SelectedPath;

                if (IOHelper.CheckWoWPath(newPath))
                {
                    Settings.Default.WoWRetailPath = FBD.SelectedPath;
                    Settings.Default.Save();

                    textBox1.Text = FBD.SelectedPath;
                }
            }
        }