コード例 #1
0
        public AppSettings()
        {
            InitializeComponent();

            if (IOHelper.CheckWoWPath(Settings.Default.WoWRetailPath))
            {
                textBox1.Text = Settings.Default.WoWRetailPath;
            }
        }
コード例 #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);
     }
 }
コード例 #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;
                }
            }
        }