Example #1
0
        private void mnuBots_Click(object sender, System.EventArgs e)
        {
            try
            {
                if (_bots == null)
                {
                    _bots      = new BotsControl();
                    _bots.Dock = DockStyle.Fill;
                }

                SetActiveControl(_bots);
            }
            catch (Exception ex)
            {
                MessageBox.Show(this, "Unable to load bots. " + ex.ToString(), "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
Example #2
0
        private void mnuBots_Click(object sender, System.EventArgs e)
        {
            try
            {
                if (_bots == null)
                {
                    _bots = new BotsControl();
                    _bots.Dock = DockStyle.Fill;
                }

                SetActiveControl(_bots);
            }
            catch (Exception ex)
            {
                MessageBox.Show(this, "Unable to load bots. " + ex.ToString(), "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }