public void SetNodeForWeb(string source, string name, string label, Color c1, string comboboxItemText1, int marker_size)
{
markerSize = marker_size; //This is for changing the marker size
tbSource = source;
tbName = name;
tbLabel = label;
colorValue = c1;
comboboxItemText = comboboxItemText1;
//Temp and humidity value
double temp1Val = 0.000;
double hum1Val = 0.00;
//web choice is selected.
string table_name = "tbl_building_location";
PullLongitudeAndLatitude(table_name);
//Now lets pass the value to weather api
GetDataFromWeb(latValueFromDB, longValueFromDB);//This gets the temperature and humidity
temp1Val = temp_pulled_from_web;
hum1Val = double.Parse(hum_pulled);
//now lets plot the values only when the humidity is <= 100 and temp >0 and < 50
if ((hum1Val > 0 && hum1Val <= 100) && (temp1Val >= 0 && temp1Val <= 50))
{
//now lets plot the values....
plot_by_DBT_HR_process_diagram((double)(int)temp1Val, (double)hum1Val / 100);
}
else
{
MessageBox.Show(Properties.Resources.Please_select_a_proper_region_);
}
}