public MScreenControls() { InitializeComponent(); // Set up the Background Worker Events //_backgroundWorker.DoWork += _backgroundWorker_DoWork; //_backgroundWorker.RunWorkerCompleted += // _backgroundWorker_RunWorkerCompleted; CreatePlotterGraph(); // Run the Background Worker //_backgroundWorker.RunWorkerAsync(5000); //---------------------------------------------- WindowsFormsHost host1 = new WindowsFormsHost(); host1.Child = display; GridControls.Children.Add(host1); //------------------------------------------------ mTimer = new PrecisionTimer.Timer(); mTimer.Period = 500; // 20 fps mTimer.Tick += new EventHandler(OnTimerTick); //lastTimerTick = DateTime.Now; //mTimer.Start(); //Removed to MSScreenResults.Calculate toggle button }
public PlotterDisplayEx() { InitializeComponent(); mTimer = new PrecisionTimer.Timer(); mTimer.Period = 50; // 20 fps mTimer.Tick += new EventHandler(OnTimerTick); play_speed = 0.5f; // 20x10 = 200 values per second == sample frequency mTimer.Start(); isRunning = false; }
public MainForm() { InitializeComponent(); OldSize = this.Size; mTimer = new PrecisionTimer.Timer(); mTimer.Period = 40; // 20 fps mTimer.Tick += new EventHandler(OnTimerTick); lastTimerTick = DateTime.Now; mTimer.Start(); }
public UserControl1() { InitializeComponent(); display.Smoothing = System.Drawing.Drawing2D.SmoothingMode.None; MyDataGraphs(); display.Refresh(); mTimer = new PrecisionTimer.Timer(); mTimer.Period = 40; // 20 fps mTimer.Tick += new EventHandler(OnTimerTick); lastTimerTick = DateTime.Now; mTimer.Start(); }
private void InitializeGraphlib(EventHandler onTimerTick) { ApplyDisplaySchema("green"); SetupGraph(Color.FromArgb(0, 255, 0), 0); display.Smoothing = System.Drawing.Drawing2D.SmoothingMode.HighQuality; //display.Refresh(); mTimer = new PrecisionTimer.Timer(); mTimer.Period = 50; // Milliseconds between frames mTimer.Tick += onTimerTick; }
public PlotterDisplayEx() { InitializeComponent(); mTimer = new PrecisionTimer.Timer(); mTimer.Period = 50; // 20 fps mTimer.Tick += new EventHandler(OnTimerTick); play_speed = 1f; // 20x10 = 200 values per second == sample frequency // mTimer.Start(); isRunning = false; //hScrollBar1.Maximum = PlotterGraphPaneEx.ScrollBarMax; //hScrollBar1.Value = PlotterGraphPaneEx.ScrollBarMax; SetPlayPanelInvisible(); }
public PlotterDisplayEx() { InitializeComponent(); SetStyle(ControlStyles.DoubleBuffer | ControlStyles.AllPaintingInWmPaint | ControlStyles.UserPaint | ControlStyles.OptimizedDoubleBuffer | ControlStyles.ResizeRedraw, true); SetStyle(ControlStyles.Opaque | ControlStyles.SupportsTransparentBackColor, false); mTimer = new PrecisionTimer.Timer(); mTimer.Period = 50; // 20 fps mTimer.Tick += new EventHandler(OnTimerTick); play_speed = 0.5f; // 20x10 = 200 values per second == sample frequency mTimer.Start(); isRunning = false; contextMenuStrip1.Items.Clear(); contextMenuStrip1.Visible = false; }
private void display_Load(object sender, EventArgs e) { display.Smoothing = System.Drawing.Drawing2D.SmoothingMode.None; CalcDataGraphs(); display.Refresh(); UpdateGraphCountMenu(); UpdateColorSchemaMenu(); mTimer = new PrecisionTimer.Timer(); mTimer.Period = 40; // 20 fps mTimer.Tick += new EventHandler(OnTimerTick); lastTimerTick = DateTime.Now; mTimer.Start(); }
public MainForm() { InitializeComponent(); display.Smoothing = System.Drawing.Drawing2D.SmoothingMode.None; CalcDataGraphs(); display.Refresh(); UpdateGraphCountMenu(); UpdateColorSchemaMenu(); mTimer = new PrecisionTimer.Timer(); mTimer.Period = 40; // 20 fps mTimer.Tick += new EventHandler(OnTimerTick); lastTimerTick = DateTime.Now; mTimer.Start(); }
public MainForm() { InitializeComponent(); display.Smoothing = System.Drawing.Drawing2D.SmoothingMode.None; // پر کردن دیتاهای هر چارت CalcDataGraphs(); // رفرش کردن خودکار چارت display.Refresh(); UpdateGraphCountMenu(); UpdateColorSchemaMenu(); mTimer = new PrecisionTimer.Timer(); // دوره زمانی mTimer.Period = 40; // 20 fps mTimer.Tick += new EventHandler(OnTimerTick); lastTimerTick = DateTime.Now; // تایمر نشان دهنده ی زمان صرف شده برای نمایش نقاط و نمودار mTimer.Start(); }
double k2 = 60; //transform if the prediction probability is greater than 20% #endregion #region Constructor public SimulatorWindow() { InitializeComponent(); //start the Intel Power Gadget IntelPowerGadget.TimeInterval = 100;//set sample rate per milliseconds IntelPowerGadget.PowerDataReading += IntelPowerGadget_PowerDataReading; StartIntelPowerGadgetAsynch(); display.Smoothing = System.Drawing.Drawing2D.SmoothingMode.None; display.PanelLayout = PlotterGraphPaneEx.LayoutMode.TILES_HOR; //display.SetPlayPanelInvisible(); intelGadgetTimer = new PrecisionTimer.Timer(); intelGadgetTimer.Period = intelPowerGadgetRePaintTick; intelGadgetTimer.Tick += new EventHandler(OnIntelGadgetPaintGraphTimerTick); //lastTimerTick = DateTime.Now; intelGadgetTimer.Start(); wattsUpTimer = new PrecisionTimer.Timer(); wattsUpTimer.Period = wattsupRePaintTick; wattsUpTimer.Tick += new EventHandler(OnWattsUpPaintGraphTimerTick); wattsUpTimer.Start(); _MyWattsUp.InternalSamplingRate = 1; _MyWattsUp.SamplingRate = 1; _MyWattsUp.IsUseWattsDelta = true; _MyWattsUp.OnWuReading += new WuReadingEventHandler(myWattsUp_OnWuReading); StartWattsUpAsynch(); CalcDataGraphs(); display.Refresh(); //set default value for decision making criteria cbK1.SelectedItem = k1.ToString(); cbK2.SelectedItem = k2.ToString(); }