Exemplo n.º 1
0
        private void btStart_Click(object sender, EventArgs e)
        {
            btStart.Enabled = false;

            ProcessTimeMeasurer ptm = new ProcessTimeMeasurer(new SimulationThreadHandle(Manager.Simulate), ProcessFinished);
            ptm.Start();
        }
Exemplo n.º 2
0
        private void btExecute_Click(object sender, EventArgs e)
        {
            btExecute.Enabled = false;

            ProcessTimeMeasurer ptm = new ProcessTimeMeasurer(new StatisticsHelperThreadHandle(), ProcessFinished);
            ptm.Start();
        }
Exemplo n.º 3
0
        public frmDebugController()
        {
            InitializeComponent();
            historyForm = new frmHistoryTable();
            Manager = new SimulationManager(36, historyForm);
            Manager.setOwnerWindow(this);
            graphLot = new frmGraphlot();
            btPause.Enabled = false;
            Paused = false;

            ProcessTimeMeasurer ptm = new ProcessTimeMeasurer(new SimulationThreadHandle(Manager.Simulate_started), ProcessFinished);
            ptm.Start();
        }
Exemplo n.º 4
0
        private void btSimulate_Click(object sender, EventArgs e)
        {
            btSimulate.Enabled = false;
            btPause.Enabled = true;

            OpenChildForm(historyForm);
            OpenChildForm(graphLot);

            ProcessTimeMeasurer ptm = new ProcessTimeMeasurer(new SimulationThreadHandle(Manager.Simulate), ProcessFinished);
            ptm.Start();
        }