C# Class MATLABfromCSharp.DataPreferences

Inheritance: System.Windows.Forms.Form
Datei anzeigen Open project: osisoft/PI-to-MATLAB-Utility Class Usage Examples

Public Methods

Method Description
DataPreferences ( MainForm main ) : System

Constructor of the Data Preferences Dialog.

formatToString ( ) : string

Creates the String Representation of the Data Preferences

getDataPref ( ) : int

Gets the integer value for Attribute.GetValues; 0 (raw), negative (sampling), positive (profiled sampling)

setDataPref ( int intervals ) : void

Setups the dialog, to select the correct radio button, based on the integer.

setupDataPreferences ( string format ) : void

Parses the string representation of the DataPreferences and setup Dialog.

if string contains "ts" then timestamp is used if string contains a number, then setups the raw/sample/profiled sample choice.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Method Description
DataPreferences_FormClosing ( object sender, FormClosingEventArgs e ) : void

Passes the Data Preferences before closing.

DataRadio_CheckedChanged ( object sender, EventArgs e ) : void
InitializeComponent ( ) : void

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

checkTimestamps_CheckedChanged ( object sender, EventArgs e ) : void
okDataButton_Click ( object sender, EventArgs e ) : void

Method Details

DataPreferences() public method

Constructor of the Data Preferences Dialog.
public DataPreferences ( MainForm main ) : System
main MainForm The MainForm, needed to pass changes in the Preferences to the MainControl.
return System

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

formatToString() public method

Creates the String Representation of the Data Preferences
public formatToString ( ) : string
return string

getDataPref() public method

Gets the integer value for Attribute.GetValues; 0 (raw), negative (sampling), positive (profiled sampling)
public getDataPref ( ) : int
return int

setDataPref() public method

Setups the dialog, to select the correct radio button, based on the integer.
public setDataPref ( int intervals ) : void
intervals int Number of samples or profiled samples wanted. Input into the textbox.
return void

setupDataPreferences() public method

Parses the string representation of the DataPreferences and setup Dialog.
if string contains "ts" then timestamp is used if string contains a number, then setups the raw/sample/profiled sample choice.
public setupDataPreferences ( string format ) : void
format string String representation of the data preferences.
return void