private void editComfortzoneToolStripMenuItem_Click(object sender, EventArgs e)
{
/*
This function helps to show edit comfortzone
steps :
1. Create the flag and setting it
*/
//==Some debugging if the enableToolStripMenuItem is not checked means no chart is present so return
if(enableToolStripMenuItem.Checked == false)
{
// MessageBox.Show("false message");
//There is no chart currently so return
return;
}
if (listchartComfortZoneInfoSingle.Count > 0)
{ //--If the chart is present then only do the edit operation
//If one we assign we
minTemperatureForNewComfortZoneCreate = int.Parse(listchartComfortZoneInfoSingle[0].min_temp);// (int)xValue;
maxTemperatureForNewComfortZoneCreate = int.Parse(listchartComfortZoneInfoSingle[0].max_temp);
minHumidityForNewComfortZoneCreate = int.Parse(listchartComfortZoneInfoSingle[0].min_hum);
maxHumidityForNewComfortZoneCreate = int.Parse(listchartComfortZoneInfoSingle[0].max_hum);
EditComfortZoneGraphicalWay();
}
}