예제 #1
0
        public VerticalPropagationPlot()
        {
            InitializeComponent();

            timer        = new PrecisionTimer();
            timer.Period = 10;
            timer.Mode   = Mode.Periodic;
            timer.Tick  += new EventHandler(timer_Tick);

            timer.Stopped += (o, e) =>
            {
                if (this.InvokeRequired)
                {
                    this.Invoke((MethodInvoker) delegate { SimulationFinishedEvent.Rise(o, e); });
                }
                else
                {
                    SimulationFinishedEvent.Rise(o, e);
                }
            };

            timer.Started += (o, e) =>
            {
                if (this.InvokeRequired)
                {
                    this.Invoke((MethodInvoker) delegate { SimulationStartedEvent.Rise(o, e); });
                }
                else
                {
                    SimulationStartedEvent.Rise(o, e);
                }
            };
        }
예제 #2
0
파일: Router.cs 프로젝트: caiokf/senoc
 public void Handle(SimulationStartedEvent message)
 {
     throw new NotImplementedException();
 }