Newer
Older
Import / projects / Gameloft / bne_lib / tools / AutobotManager / src / CloseDialog.cs
@John John on 29 Dec 2020 842 bytes bulk import from macbookpro checkouts
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace AutobotManager
{
    public partial class CloseDialog : Form
    {
        public Form1 MainForm { get; set; }
        public CloseDialog(Form1 aMainForm)
        {
            MainForm = aMainForm;
            InitializeComponent();
        }

        private void bot_close_timer_Tick(object sender, EventArgs e)
        {
            if (0==MainForm.m_BotManager.GetBotCount())
            {
                this.DialogResult = DialogResult.OK;
                this.Close();
            }
            else
            {
                MainForm.m_BotManager.KillAllBots();
            }

        }
    }
}