-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPlot.cs
More file actions
30 lines (25 loc) · 919 Bytes
/
Copy pathPlot.cs
File metadata and controls
30 lines (25 loc) · 919 Bytes
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
using System.Drawing;
using System.Windows.Forms;
namespace Stabilization
{
public partial class Plot : Form
{
public Plot()
{
InitializeComponent();
// start postion 0,0
this.StartPosition = FormStartPosition.Manual;
// this size is the same to screen hieght and width/2
this.Size = new Size(Screen.PrimaryScreen.Bounds.Width / 2, Screen.PrimaryScreen.Bounds.Height-30);
this.Location = new Point(0, 0);
this.chart1.Series["Series1"].Points.Clear();
this.chart1.Series["target"].Points.Clear();
this.chart1.Series["out"].Points.Clear();
// set the location to the right side of the screen
}
private void Plot_FormClosing(object sender, FormClosingEventArgs e)
{
e.Cancel = true; // Prevent the form from closing
}
}
}