C# Class Glow.PaneControls.RandomColor

Inheritance: Windows.UI.Xaml.Controls.UserControl, IProgramPane
Mostrar archivo Open project: QuinnDamerell/Glow

Public Methods

Method Description
OnCommand ( Command cmd ) : void

Fired when we get a response from the server

OnProgramListChanged ( ) : void

Fired when a state changes.

RandomColor ( IProgramController controller ) : Glow.Interfaces

Private Methods

Method Description
ConnectionManager_OnClientConnected ( ) : void

Fired when a user is reconnected.

GetAndSetProgramState ( ) : void

Updates the program state

GetCurrentRandomSettings ( ) : void

Requests the current settings from the server

MaxBetweenChange_ValueChanged ( object sender, RangeBaseValueChangedEventArgs e ) : void

Fired when a user moves a slider

MaxForColorChange_ValueChanged ( object sender, RangeBaseValueChangedEventArgs e ) : void

Fired when a user moves a slider

MinForColorChange_ValueChanged ( object sender, RangeBaseValueChangedEventArgs e ) : void

Fired when a user moves a slider

MinTimeBetweenChange_ValueChanged ( object sender, RangeBaseValueChangedEventArgs e ) : void

Fired when a user moves a slider

RandomColorEnabled_Toggled ( object sender, RoutedEventArgs e ) : void

The user has updated the program state

SendNewSettings ( ) : void

Sends new settings to the server

SetTimeText ( int timeInMs ) : string

Formats the string into a time.

UpdateRandomColorSettingsUi ( ) : void

Updates the UI with the current settings

Method Details

OnCommand() public method

Fired when we get a response from the server
public OnCommand ( Command cmd ) : void
cmd GlowCommon.DataObjects.Command
return void

OnProgramListChanged() public method

Fired when a state changes.
public OnProgramListChanged ( ) : void
return void

RandomColor() public method

public RandomColor ( IProgramController controller ) : Glow.Interfaces
controller IProgramController
return Glow.Interfaces