public AppSettings() { InitializeComponent(); if (IOHelper.CheckWoWPath(Settings.Default.WoWRetailPath)) { textBox1.Text = Settings.Default.WoWRetailPath; } }
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); } }
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; } } }