public NewBattle(frmMain pParentForm) { // // Required for Windows Form Designer support // InitializeComponent(); m_pParent = pParentForm; LoadAvailableRobots(); lsbGroups.SelectedIndex = 0; }
public Battle(frmMain pParentForm, Size tBattleFieldSize, RobotListItem[] pRobots, int nNumRounds) { m_pParentForm = pParentForm; m_nNumRounds = nNumRounds; m_tBattleFieldSize = tBattleFieldSize; m_nNumRobots = pRobots.Length; m_pRobots = new Robot[m_nNumRobots]; m_pThreads = new Thread[m_nNumRobots]; m_pWinners = new ArrayList(); m_pRobotList = pRobots; m_nRoundNum = 1; CreateRound(); }
static void Main() { using (frmMain pForm = new frmMain()) { pForm.ShowSplashScreen(); pForm.Show(); while (pForm.Created) { pForm.ProcessFrame(); Application.DoEvents(); } } }