Example #1
0
        private void initNxtBot()
        {
            MyXML xml = new MyXML(config_path);

            try
            {
                n_nxt_bot_num_runs.Value = Convert.ToDecimal(xml.read(nb_run_number));
            }
            catch { }

            try
            {
                n_nxt_bot_run_delay.Value = Convert.ToDecimal(xml.read(nb_run_delay));
            }
            catch { }

            try
            {
                n_nxt_bot_sleep_time.Value = Convert.ToDecimal(xml.read(nb_rest));
            }
            catch { }

            try
            {
                B_DankCellarBot.active = true;
                g_nxt_bot.Enabled      = B_DankCellarBot.active;
            }
            catch { }

            try
            {
                c_nxt_auto_rep.Checked = Convert.ToBoolean(xml.read(nb_rep));
            }
            catch { }


            try
            {
                c_loot_set.Checked = Convert.ToBoolean(xml.read(loot_set));
            }
            catch { }
            try
            {
                c_loot_legendary.Checked = Convert.ToBoolean(xml.read(loot_legendary));
            }
            catch { }
            try
            {
                c_store_to_stash.Checked = Convert.ToBoolean(xml.read(loot_store_to_stash));
            }
            catch { }
            try
            {
                c_loot_rare.Checked = Convert.ToBoolean(xml.read(loot_rare));
            }
            catch { }

            nxtBot = new B_DankCellarBot();
        }
Example #2
0
        private void initNxtBot()
        {
            MyXML xml = new MyXML(config_path);
            
            try
            {
                n_nxt_bot_num_runs.Value = Convert.ToDecimal(xml.read(nb_run_number));
            }
            catch { }

            try
            {
                n_nxt_bot_run_delay.Value = Convert.ToDecimal(xml.read(nb_run_delay));
            }
            catch { }

            try
            {
                n_nxt_bot_sleep_time.Value = Convert.ToDecimal(xml.read(nb_rest));
            }
            catch { }

            try
            {
                B_DankCellarBot.active = true;
                g_nxt_bot.Enabled = B_DankCellarBot.active;
            }
            catch { }

            try
            {
                c_nxt_auto_rep.Checked = Convert.ToBoolean(xml.read(nb_rep));
            }
            catch { }


            try
            {
                c_loot_set.Checked = Convert.ToBoolean(xml.read(loot_set));
            }
            catch { }
            try
            {
                c_loot_legendary.Checked = Convert.ToBoolean(xml.read(loot_legendary));
            }
            catch { }
            try
            {
                c_store_to_stash.Checked = Convert.ToBoolean(xml.read(loot_store_to_stash));
            }
            catch { }
            try
            {
                c_loot_rare.Checked = Convert.ToBoolean(xml.read(loot_rare));
            }
            catch { }

            nxtBot = new B_DankCellarBot();
        }