Exemple #1
0
		//This is called after the _currentEventIndex was modified
		private void RefreshEvent()
		{
			if (_currentEventIndex >= _events.Count)
			{
				Application.Exit();
				return;
			}

			_currentForm.Visible = false;
			_currentForm.Close();
			_currentForm = null;
			GC.Collect();
			_currentForm = CreateForm(CurrentFormType);
			_currentForm.Show();
			_currentForm.SetupUpdateThread();
		}
Exemple #2
0
		public void StartGame()
		{
			_currentForm = CreateForm(CurrentFormType);
			_currentForm.Show();
			_currentForm.SetupUpdateThread();
        }