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(); }
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(); }
private void StartGraph() { mTimer.Start(); }