private void checkBox1_CheckedChanged(object sender, System.EventArgs e)
{
if(checkBox1.Checked ) i =1;
if(!checkBox1.Checked ) i = 0;}