public SetNodeWithValues ( string source, string name, string label, Color c1, string comboboxItemText1, double temperature, double humidity ) : void | ||
source | string | |
name | string | |
label | string | |
c1 | Color | |
comboboxItemText1 | string | |
temperature | double | |
humidity | double | |
return | void |
private void btnSetNode_Click(object sender, EventArgs e) { //Set node values /* * This set node should do two task * 1. Insert a point by calling a function * 2. It should input the values in menuStripNodeInfoValues */ string source = tbSource.Text; string name = tbName.Text; string label = tbLabel.Text; string cbItemSelected = comboBox1.Text; double temp = double.Parse(tb_temperature_input.Text); double hum = double.Parse(tb_humidity_input.Text); //MessageBox.Show("items index " + cbItemSelected); F1.SetNodeWithValues(source, name, label, btnColor.BackColor, cbItemSelected, temp, hum); //MessageBox.Show(Properties.Resources.Success0); this.Close(); }