private void btnNew_Click(object sender, EventArgs e)
 {
     lock (BotSettings.Instance)
     {
         // Open new bot wizard
         var wm = new WizardMain {
             TopMost = true
         };
         wm.ShowDialog();
     }
 }
 private void editToolStripMenuItem_Click(object sender, EventArgs e)
 {
     lock (BotSettings.Instance)
     {
         // Edit bot
         var wm = new WizardMain(botGrid.CurrentRow.Index)
         {
             TopMost = true
         };
         wm.ShowDialog();
     }
 }
        private void btnEdit_Click(object sender, EventArgs e)
        {
            lock (BotSettings.Instance)
            {
                // Edit bot
                if (botGrid.CurrentRow == null || botGrid.CurrentRow.Index < 0)
                {
                    return;
                }
                var wm = new WizardMain(botGrid.CurrentRow.Index)
                {
                    TopMost = true
                };

                wm.ShowDialog();
            }
        }