C# Класс WFA_psychometric_chart.EditNodeLineForm

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
bcs Form1_main
dataGridView1 System.Windows.Forms.DataGridView
lineInfo List
nodeInfo List
tempNodeID string
tempRowIndex int

Открытые методы

Метод Описание
CalculateProcessParameterForEnergy ( string id, string prevNodeID, string nextNodeID, Series lineSeriesID, Color colorVal, int thickness_value, string name ) : void
CallFromTemperatureAndHumidtyFormForMixNodeFxn ( string nodeID ) : void
EditNodeLineForm ( Form1_main b ) : System
EndEditCall ( ) : void
EnergyCalculationForProcess ( DataGridViewRow dgv_row ) : void
LineUpdateAndReload ( string lineid, string prevNodeID, string nextNodeID, Color color, int thickness, Series lineseries, string name, int status ) : void
LoadNodeAndLine ( ) : void
RefreshChartAndDGVForMixNodeFunction ( ) : void
RefreshDataFromDBAndChart ( ) : void
SetNodeForDeviceUsingTempAndHum ( string source, string name, string label, Color c1, string comboboxItemText1, int marker_size, string deviceInstance, string IP, string param1ID, string param2ID, string param1_info, string param2_info, string param1_value, string param2_value, string object_identifier_type_param1, string object_identifier_type_param2 ) : void
SetNodeForWeb ( string source, string name, string label, Color c1, string comboboxItemText1, int marker_size ) : void
UpdateDataValueAndRefreshDGV ( string NodeID, double xVal, double yVal, string source, string name, string label, Color color, string showtext, int nodesize ) : void
UpdateNodeInfoForDeviceSelection ( string nodeID, string deviceInstancID, string IP, string param1id, string param2id, string param1info, string param2info, string param1Value, string param2Value, string param1_id_type, string param2_id_type ) : void

This function helps to update the device information of a node and also update the node value

UpdateNodeInfoForHumidityDeviceSelection ( string nodeID, string Humidity_deviceInstancID, string Humidity_IP, string Humidity_param1id, string Humidity_param1info, string Humidity_param1Value, string Humidity_param1_id_type ) : void
UpdateNodeInfoForTemperatureDeviceSelection ( string nodeID, string Temp_deviceInstancID, string Temp_IP, string Temp_param1id, string Temp_param1info, string Temp_param1Value, string Temp_param1_id_type ) : void

fUNCTION WILL HELP IN Updating node info value for temperature form and inserts to db

WebUpdateSelection ( ) : void
WebUpdateSelectionForHumidity ( ) : void
WebUpdateSelectionForTemperature ( ) : void

This one update the node info value to db

dataGridView1_CellEndEdit ( object sender, DataGridViewCellEventArgs e ) : void

This is triggered when the editing is completed

previousApplyButtonCode ( ) : void
updateNodeInfoBasedOnPresentValue ( string NodeID, double xVal, double yVal, string temperature_source, string humidity_source, string name, Color color, int nodesize, int airFlow1 ) : void

Защищенные методы

Метод Описание
Dispose ( bool disposing ) : void

Clean up any resources being used.

Приватные методы

Метод Описание
ComboBox_SelectedIndexChanged ( object sender, EventArgs e ) : void
EditNodeLineForm_Load ( object sender, EventArgs e ) : void
InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

button1_Click ( object sender, EventArgs e ) : void
button2_Click ( object sender, EventArgs e ) : void
dataGridView1_CellBeginEdit ( object sender, DataGridViewCellCancelEventArgs e ) : void
dataGridView1_CellClick ( object sender, DataGridViewCellEventArgs e ) : void
dataGridView1_CellValueChanged_1 ( object sender, DataGridViewCellEventArgs e ) : void
dataGridView1_EditingControlShowing ( object sender, DataGridViewEditingControlShowingEventArgs e ) : void
dataGridView1_MouseClick ( object sender, MouseEventArgs e ) : void
dataGridView2_CellBeginEdit ( object sender, DataGridViewCellCancelEventArgs e ) : void
dataGridView2_CellClick ( object sender, DataGridViewCellEventArgs e ) : void
dataGridView2_CellContentClick ( object sender, DataGridViewCellEventArgs e ) : void
dataGridView2_CellEndEdit ( object sender, DataGridViewCellEventArgs e ) : void
dataGridView2_CellValueChanged ( object sender, DataGridViewCellEventArgs e ) : void
dataGridView2_SelectionChanged ( object sender, EventArgs e ) : void

Описание методов

CalculateProcessParameterForEnergy() публичный Метод

public CalculateProcessParameterForEnergy ( string id, string prevNodeID, string nextNodeID, Series lineSeriesID, Color colorVal, int thickness_value, string name ) : void
id string
prevNodeID string
nextNodeID string
lineSeriesID Series
colorVal Color
thickness_value int
name string
Результат void

CallFromTemperatureAndHumidtyFormForMixNodeFxn() публичный Метод

public CallFromTemperatureAndHumidtyFormForMixNodeFxn ( string nodeID ) : void
nodeID string
Результат void

Dispose() защищенный Метод

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
Результат void

EditNodeLineForm() публичный Метод

public EditNodeLineForm ( Form1_main b ) : System
b Form1_main
Результат System

EndEditCall() публичный Метод

public EndEditCall ( ) : void
Результат void

EnergyCalculationForProcess() публичный Метод

public EnergyCalculationForProcess ( DataGridViewRow dgv_row ) : void
dgv_row DataGridViewRow
Результат void

LineUpdateAndReload() публичный Метод

public LineUpdateAndReload ( string lineid, string prevNodeID, string nextNodeID, Color color, int thickness, Series lineseries, string name, int status ) : void
lineid string
prevNodeID string
nextNodeID string
color Color
thickness int
lineseries Series
name string
status int
Результат void

LoadNodeAndLine() публичный Метод

public LoadNodeAndLine ( ) : void
Результат void

RefreshChartAndDGVForMixNodeFunction() публичный Метод

public RefreshChartAndDGVForMixNodeFunction ( ) : void
Результат void

RefreshDataFromDBAndChart() публичный Метод

public RefreshDataFromDBAndChart ( ) : void
Результат void

SetNodeForDeviceUsingTempAndHum() публичный Метод

public SetNodeForDeviceUsingTempAndHum ( string source, string name, string label, Color c1, string comboboxItemText1, int marker_size, string deviceInstance, string IP, string param1ID, string param2ID, string param1_info, string param2_info, string param1_value, string param2_value, string object_identifier_type_param1, string object_identifier_type_param2 ) : void
source string
name string
label string
c1 Color
comboboxItemText1 string
marker_size int
deviceInstance string
IP string
param1ID string
param2ID string
param1_info string
param2_info string
param1_value string
param2_value string
object_identifier_type_param1 string
object_identifier_type_param2 string
Результат void

SetNodeForWeb() публичный Метод

public SetNodeForWeb ( string source, string name, string label, Color c1, string comboboxItemText1, int marker_size ) : void
source string
name string
label string
c1 Color
comboboxItemText1 string
marker_size int
Результат void

UpdateDataValueAndRefreshDGV() публичный Метод

public UpdateDataValueAndRefreshDGV ( string NodeID, double xVal, double yVal, string source, string name, string label, Color color, string showtext, int nodesize ) : void
NodeID string
xVal double
yVal double
source string
name string
label string
color Color
showtext string
nodesize int
Результат void

UpdateNodeInfoForDeviceSelection() публичный Метод

This function helps to update the device information of a node and also update the node value
public UpdateNodeInfoForDeviceSelection ( string nodeID, string deviceInstancID, string IP, string param1id, string param2id, string param1info, string param2info, string param1Value, string param2Value, string param1_id_type, string param2_id_type ) : void
nodeID string node id
deviceInstancID string device instance id
IP string IP value
param1id string param1 id
param2id string param2 id
param1info string param1info eg. temp
param2info string param2 info eg. hum/enthalpy
param1Value string
param2Value string
param1_id_type string eg. OBJECT_ANALOG_INPUT
param2_id_type string eg. OBJECT_ANALOG_INPUT,
Результат void

UpdateNodeInfoForHumidityDeviceSelection() публичный Метод

public UpdateNodeInfoForHumidityDeviceSelection ( string nodeID, string Humidity_deviceInstancID, string Humidity_IP, string Humidity_param1id, string Humidity_param1info, string Humidity_param1Value, string Humidity_param1_id_type ) : void
nodeID string
Humidity_deviceInstancID string
Humidity_IP string
Humidity_param1id string
Humidity_param1info string
Humidity_param1Value string
Humidity_param1_id_type string
Результат void

UpdateNodeInfoForTemperatureDeviceSelection() публичный Метод

fUNCTION WILL HELP IN Updating node info value for temperature form and inserts to db
public UpdateNodeInfoForTemperatureDeviceSelection ( string nodeID, string Temp_deviceInstancID, string Temp_IP, string Temp_param1id, string Temp_param1info, string Temp_param1Value, string Temp_param1_id_type ) : void
nodeID string
Temp_deviceInstancID string
Temp_IP string
Temp_param1id string
Temp_param1info string
Temp_param1Value string
Temp_param1_id_type string
Результат void

WebUpdateSelection() публичный Метод

public WebUpdateSelection ( ) : void
Результат void

WebUpdateSelectionForHumidity() публичный Метод

public WebUpdateSelectionForHumidity ( ) : void
Результат void

WebUpdateSelectionForTemperature() публичный Метод

This one update the node info value to db
public WebUpdateSelectionForTemperature ( ) : void
Результат void

dataGridView1_CellEndEdit() публичный Метод

This is triggered when the editing is completed
public dataGridView1_CellEndEdit ( object sender, DataGridViewCellEventArgs e ) : void
sender object an object
e DataGridViewCellEventArgs event value
Результат void

previousApplyButtonCode() публичный Метод

public previousApplyButtonCode ( ) : void
Результат void

updateNodeInfoBasedOnPresentValue() публичный Метод

public updateNodeInfoBasedOnPresentValue ( string NodeID, double xVal, double yVal, string temperature_source, string humidity_source, string name, Color color, int nodesize, int airFlow1 ) : void
NodeID string
xVal double
yVal double
temperature_source string
humidity_source string
name string
color Color
nodesize int
airFlow1 int
Результат void

Описание свойств

bcs публичное свойство

public Form1_main bcs
Результат Form1_main

dataGridView1 публичное свойство

public System.Windows.Forms.DataGridView dataGridView1
Результат System.Windows.Forms.DataGridView

lineInfo публичное свойство

public List lineInfo
Результат List

nodeInfo публичное свойство

public List nodeInfo
Результат List

tempNodeID публичное свойство

public string tempNodeID
Результат string

tempRowIndex публичное свойство

public int tempRowIndex
Результат int