public void SetNodeWithValues(string source, string name, string label, Color c1, string comboboxItemText1, double temperature, double humidity)
{
tbSource = source;
tbName = name;
tbLabel = label;
colorValue = c1;
comboboxItemText = comboboxItemText1;
//lets do the processing
//lets count how many items were inserted
countNumberOfPoints += 1;
//lets get the coordinates to plot on the graph..
//this will be set on right click..not here
//lets process the data
/*
calculating the humidity and temperature value form the coordinates..
*/
// HumTempCalcByCoordinate();
//MessageBox.Show("Temp= " + temperatureValue + ",hum = " + humidityValue);
//now lets plot the values only when the humidity is <= 100 and temp >0 and < 50
if ((humidity > 0 && humidity <= 100) && (temperature >= 0 && temperature <= 50))
{
//now lets plot the values....
plot_by_DBT_HR_process_diagram((double)(int)temperature, (double)humidity / 100);
}
else
{
MessageBox.Show(Properties.Resources.Please_select_a_proper_region_);
}
}