C# Class WFA_psychometric_chart.Form_handler

Inheritance: System.Windows.Forms.Form
显示文件 Open project: temcocontrols/T3000_Building_Automation_System Class Usage Examples

Public Properties

Property Type Description
idSelectedOfChart int
lb_simulation_mode_display System.Windows.Forms.Label
lineInformationFromXML List
menuStripNodeInfoValues List
menuStripNodeLineInfoValues List
nodeInformationFromXML List

Public Methods

Method Description
AddOrUpdateNewRecord ( string name, System.Windows.Forms.DataGridViewCellEventArgs e ) : void
CountingDB_Item ( string db_name ) : int
DataGridView_Show_Data ( ) : void
DeleteAllTableData ( string tableName ) : void
Form_handler ( Form1_main f ) : System
HumTempCalcByCoordinate ( ) : void
InsertLineInfoToDB ( int id, int prevNodeId, int nextNodeId, Color lineColor, System.Windows.Forms.DataVisualization.Charting.Series lineSeriesVal ) : void
InsertNodeInfoToDB ( int id, double xVal, double yVal, string source, string name, string label, Color colorValue, string showItemText ) : void
PullDataFromDB ( ) : void
ReDrawLines ( double id, int prevNodeID, int nextNodeID, System.Windows.Forms.DataVisualization.Charting.Series lineSeriesID, Color c ) : void
ReDrawPoints ( System.Windows.Forms.DataVisualization.Charting.Series s1, double x, double y, Color c, string source1, string name1, string label1x, string labelValueText ) : void
ReDrawingLineAndNode ( ) : void
RefreshGraph ( ) : void
ResettingLines ( ) : void
SaveConfiguration ( ) : void
SetNode ( string source, string name, string label, Color c1, string comboboxItemText1 ) : void
UpdateLineInfoToDB ( int id, int prevNodeId, int nextNodeId, Color lineColor, System.Windows.Forms.DataVisualization.Charting.Series lineSeriesVal ) : void
UpdateNewDataFromDGV ( string name, int id ) : void
UpdateNodeInfoToDB ( int id, double xVal, double yVal, string source, string name, string label, Color colorValue, string showItemText ) : void
addCursorFunctionForLineDisconnectConnect ( MouseEventArgs e ) : void
addTemporarySeries ( ) : void
add_t_pg ( ) : void
deleteDatabaseTable ( string tableName ) : void
insertNewDataFromDGV ( string name ) : void
loadVariableInDGV2 ( ) : void
loadXMLDoc ( ) : void
plot_by_DBT_HR_process_diagram ( double DBT, double HR ) : int
plot_new_graph ( ) : void
plot_on_graph_values_process_diagram ( double dbt, double hr, double xval, double yval ) : void

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Method Description
CalculateHumidityEnthalpy ( double xVal, double yVal ) : void
Form_handler_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.

LineDeterctOnMouseMove ( MouseEventArgs e ) : void
LoadNodeAndLineFromDB ( int idOfChart ) : void
NodeSelectionAndRelease ( MouseEventArgs e ) : void
ProcessDiagramMouseMoveFunction ( MouseEventArgs e ) : void
chart1_MouseClick ( object sender, MouseEventArgs e ) : void
chart1_MouseDown ( object sender, MouseEventArgs e ) : void
chart1_MouseMove ( object sender, MouseEventArgs e ) : void
dataGridView1_CellBeginEdit ( object sender, System.Windows.Forms.DataGridViewCellCancelEventArgs e ) : void
dataGridView1_CellClick ( object sender, System.Windows.Forms.DataGridViewCellEventArgs e ) : void
dataGridView1_CellEndEdit_1 ( object sender, System.Windows.Forms.DataGridViewCellEventArgs e ) : void
dataGridView1_CellMouseClick ( object sender, System.Windows.Forms.DataGridViewCellMouseEventArgs e ) : void
dataGridView1_CellValidating ( object sender, System.Windows.Forms.DataGridViewCellValidatingEventArgs e ) : void
deleteHandlerToolStripMenuItem_Click ( object sender, EventArgs e ) : void
disconnectLineToolStripMenuItem_Click ( object sender, EventArgs e ) : void
fillDataGridView ( ) : void
insertNodeToolStripMenuItem_Click ( object sender, EventArgs e ) : void
loadSettingsToolStripMenuItem_Click ( object sender, EventArgs e ) : void
saveSettingsToolStripMenuItem_Click ( object sender, EventArgs e ) : void
statePointsToolStripMenuItem_Click ( object sender, EventArgs e ) : void

Method Details

AddOrUpdateNewRecord() public method

public AddOrUpdateNewRecord ( string name, System.Windows.Forms.DataGridViewCellEventArgs e ) : void
name string
e System.Windows.Forms.DataGridViewCellEventArgs
return void

CountingDB_Item() public method

public CountingDB_Item ( string db_name ) : int
db_name string
return int

DataGridView_Show_Data() public method

public DataGridView_Show_Data ( ) : void
return void

DeleteAllTableData() public method

public DeleteAllTableData ( string tableName ) : void
tableName string
return void

Dispose() protected method

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
return void

Form_handler() public method

public Form_handler ( Form1_main f ) : System
f Form1_main
return System

HumTempCalcByCoordinate() public method

public HumTempCalcByCoordinate ( ) : void
return void

InsertLineInfoToDB() public method

public InsertLineInfoToDB ( int id, int prevNodeId, int nextNodeId, Color lineColor, System.Windows.Forms.DataVisualization.Charting.Series lineSeriesVal ) : void
id int
prevNodeId int
nextNodeId int
lineColor Color
lineSeriesVal System.Windows.Forms.DataVisualization.Charting.Series
return void

InsertNodeInfoToDB() public method

public InsertNodeInfoToDB ( int id, double xVal, double yVal, string source, string name, string label, Color colorValue, string showItemText ) : void
id int
xVal double
yVal double
source string
name string
label string
colorValue Color
showItemText string
return void

PullDataFromDB() public method

public PullDataFromDB ( ) : void
return void

ReDrawLines() public method

public ReDrawLines ( double id, int prevNodeID, int nextNodeID, System.Windows.Forms.DataVisualization.Charting.Series lineSeriesID, Color c ) : void
id double
prevNodeID int
nextNodeID int
lineSeriesID System.Windows.Forms.DataVisualization.Charting.Series
c Color
return void

ReDrawPoints() public method

public ReDrawPoints ( System.Windows.Forms.DataVisualization.Charting.Series s1, double x, double y, Color c, string source1, string name1, string label1x, string labelValueText ) : void
s1 System.Windows.Forms.DataVisualization.Charting.Series
x double
y double
c Color
source1 string
name1 string
label1x string
labelValueText string
return void

ReDrawingLineAndNode() public method

public ReDrawingLineAndNode ( ) : void
return void

RefreshGraph() public method

public RefreshGraph ( ) : void
return void

ResettingLines() public method

public ResettingLines ( ) : void
return void

SaveConfiguration() public method

public SaveConfiguration ( ) : void
return void

SetNode() public method

public SetNode ( string source, string name, string label, Color c1, string comboboxItemText1 ) : void
source string
name string
label string
c1 Color
comboboxItemText1 string
return void

UpdateLineInfoToDB() public method

public UpdateLineInfoToDB ( int id, int prevNodeId, int nextNodeId, Color lineColor, System.Windows.Forms.DataVisualization.Charting.Series lineSeriesVal ) : void
id int
prevNodeId int
nextNodeId int
lineColor Color
lineSeriesVal System.Windows.Forms.DataVisualization.Charting.Series
return void

UpdateNewDataFromDGV() public method

public UpdateNewDataFromDGV ( string name, int id ) : void
name string
id int
return void

UpdateNodeInfoToDB() public method

public UpdateNodeInfoToDB ( int id, double xVal, double yVal, string source, string name, string label, Color colorValue, string showItemText ) : void
id int
xVal double
yVal double
source string
name string
label string
colorValue Color
showItemText string
return void

addCursorFunctionForLineDisconnectConnect() public method

public addCursorFunctionForLineDisconnectConnect ( MouseEventArgs e ) : void
e MouseEventArgs
return void

addTemporarySeries() public method

public addTemporarySeries ( ) : void
return void

add_t_pg() public method

public add_t_pg ( ) : void
return void

deleteDatabaseTable() public method

public deleteDatabaseTable ( string tableName ) : void
tableName string
return void

insertNewDataFromDGV() public method

public insertNewDataFromDGV ( string name ) : void
name string
return void

loadVariableInDGV2() public method

public loadVariableInDGV2 ( ) : void
return void

loadXMLDoc() public method

public loadXMLDoc ( ) : void
return void

plot_by_DBT_HR_process_diagram() public method

public plot_by_DBT_HR_process_diagram ( double DBT, double HR ) : int
DBT double
HR double
return int

plot_new_graph() public method

public plot_new_graph ( ) : void
return void

plot_on_graph_values_process_diagram() public method

public plot_on_graph_values_process_diagram ( double dbt, double hr, double xval, double yval ) : void
dbt double
hr double
xval double
yval double
return void

Property Details

idSelectedOfChart public_oe property

public int idSelectedOfChart
return int

lb_simulation_mode_display public_oe property

public System.Windows.Forms.Label lb_simulation_mode_display
return System.Windows.Forms.Label

lineInformationFromXML public_oe property

public List lineInformationFromXML
return List

menuStripNodeInfoValues public_oe property

public List menuStripNodeInfoValues
return List

menuStripNodeLineInfoValues public_oe property

public List menuStripNodeLineInfoValues
return List

nodeInformationFromXML public_oe property

This load the file and inserts the data in database as well
public List nodeInformationFromXML
return List