C# Class BrrrBayBay.PwmGUIControl.PwmChannelControl

Inheritance: LogicChannelControl
Afficher le fichier Open project: joosthaverkort/PWMLogic Class Usage Examples

Méthodes publiques

Méthode Description
Dispose ( ) : void
PwmChannelControl ( ) : System
applyValues ( ) : System.Boolean

Applies the user settings to the channelsettings object. This is only performed if the user settings are correct

reloadChannelSettings ( ) : void
setNewFrequency ( int frequency, String fUnits ) : void

Fills in the frequency and frequencyUnit boxes

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Méthode Description
AsyncPwmChannelControl_ChannelNumberChanged ( object sender, EventArgs e ) : void
AsyncPwmChannelControl_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.

calculateRealValues ( ) : void
ct_KeyDown ( object sender, KeyEventArgs e ) : void
ct_KeyPress ( object sender, KeyPressEventArgs e ) : void
dutyCycleBar_Scroll ( object sender, EventArgs e ) : void
dutyCycleBar_ValueChanged ( object sender, EventArgs e ) : void
dutyCycleBox_TextChanged ( object sender, EventArgs e ) : void
enabledBox_CheckedChanged ( object sender, EventArgs e ) : void
frequencyBox_TextChanged ( object sender, EventArgs e ) : void
recalculateDutyCycle ( ) : System.Boolean

Recalculates and checks the dutycycle value

recalculateFrequency ( ) : System.Boolean

Recalculates the frequency value and returns true if it is correct

setDcBoxVal ( double value ) : void
setTmpDc ( double value ) : void

Sets the tmpDc value and raises the settingschanged event

setTmpFrequency ( double tmpFrequency ) : void

Sets the tmpFrequency value and raises the SettingsChangedEvent

updateSliderPosition ( ) : void

Updates the slider position with the current duty cycle value

Method Details

Dispose() public méthode

public Dispose ( ) : void
Résultat void

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

PwmChannelControl() public méthode

public PwmChannelControl ( ) : System
Résultat System

applyValues() public méthode

Applies the user settings to the channelsettings object. This is only performed if the user settings are correct
public applyValues ( ) : System.Boolean
Résultat System.Boolean

reloadChannelSettings() public méthode

public reloadChannelSettings ( ) : void
Résultat void

setNewFrequency() public méthode

Fills in the frequency and frequencyUnit boxes
public setNewFrequency ( int frequency, String fUnits ) : void
frequency int The new frequency
fUnits String The new frequency units
Résultat void