private void MainForm_Resize(object sender, EventArgs e)
{
if (WindowState == FormWindowState.Maximized)
this.tChart1.Legend.Left = 600;
else if(WindowState == FormWindowState.Normal)
this.tChart1.Legend.Left = 490;
}
{
if (WindowState == FormWindowState.Maximized)
this.tChart1.Legend.Left = 600;
else if(WindowState == FormWindowState.Normal)
this.tChart1.Legend.Left = 490;
}