C# Class MATLABfromCSharp.DataPreferences

Inheritance: System.Windows.Forms.Form
Afficher le fichier Open project: osisoft/PI-to-MATLAB-Utility Class Usage Examples

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Méthode 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 méthode

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.
Résultat System

Dispose() protected méthode

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

formatToString() public méthode

Creates the String Representation of the Data Preferences
public formatToString ( ) : string
Résultat string

getDataPref() public méthode

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

setDataPref() public méthode

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.
Résultat void

setupDataPreferences() public méthode

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.
Résultat void