-
Notifications
You must be signed in to change notification settings - Fork 560
/
Form1.cs
52 lines (40 loc) · 1.25 KB
/
Form1.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
using System;
using System.Drawing;
using System.Linq;
using System.Windows.Forms;
using System.Collections.Generic; // so we can use lists
namespace pixelDrawDrag2
{
public partial class Form1 : Form
{
public List<int> listTimes = new List<int>();
internal ScottPlot SP = new ScottPlot();
public Form1()
{
InitializeComponent();
pictureBox1.Image = SP.bufferGraph;
resize(null, new EventArgs());
}
private void Form1_Load(object sender, EventArgs e) {
}
private void pictureBox1_Click(object sender, EventArgs e) {
}
private void label1_Click(object sender, EventArgs e) {
}
private void panel1_Paint(object sender, PaintEventArgs e) {
}
private void timer1_Tick(object sender, EventArgs e) {
SP.TimerStart();
SP.Roll();
SP.PlotXY();
pictureBox1.Image = SP.bufferGraph;
SP.TimerStop();
richTextBox1.Text = SP.TimerVal();
}
private void resize(object sender, EventArgs e) {
SP.pxWidth = pictureBox1.Width;
SP.pxHeight = pictureBox1.Height;
SP.InitBitmap();
}
}
}