Пример #1
0
		private static void StartOrResume(Controller controller, Status status)
		{
			if (status == Status.PAUSED)
				controller.Resume();
			else if (status == Status.OFF || status == Status.SAVED)
				controller.Start();
		}
Пример #2
0
		private static void Restart(Controller controller, Status status)
		{
			if (status == Status.RUNNING || status == Status.PAUSED)
				controller.PowerOff();
			controller.Start();
		}