public void LoadComfortZoneIfOn(string chartid)
{
//First load the char id if present
//This load the comfortzone info for a chart if present
int count_item = 0;
count_item = CountNumberOfItem(chartid);//This will count the value
if (count_item > 0)
{
InfoForComfortZoneOfChart(chartid);
if (default_comfort_zone_of_chart.Count > 0)
{
//the info is present
//now load the comfort zone..
pullComfortZoneInfoSingle(default_comfort_zone_of_chart[0].comfortzoneid); //This pulls the comfort zone data
//only plot if the comfortzone is enabled
if (default_comfort_zone_of_chart[0].status == "enable")
{
if (listchartComfortZoneInfoSingle.Count > 0)
{
//Then we need to plot comfort zone
PlotComfortZone(double.Parse(listchartComfortZoneInfoSingle[0].min_temp), double.Parse(listchartComfortZoneInfoSingle[0].max_temp), double.Parse(listchartComfortZoneInfoSingle[0].min_hum), double.Parse(listchartComfortZoneInfoSingle[0].max_hum), listchartComfortZoneInfoSingle[0].colorValue, listchartComfortZoneInfoSingle[0].name);
// flagShow = 1;//lets enable flag
// MessageBox.Show("Enable flowshow =1");
}
}
}//close of if
}
}