C# Class PianoKeyEmulator.MainWindow

Логика взаимодействия для MainWindow.xaml
Inheritance: INotifyPropertyChanged
ファイルを表示 Open project: DrA1ex/GuitarHelper Class Usage Examples

Public Properties

Property Type Description
InstrumentNames string[]

Private Properties

Property Type Description
AddToggledToSong void
BChordPreviewMouseDown void
BChordPreviewMouseUp void
BPlayPreviewMouseLeftButtonUp void
BResetPreviewMouseUp void
BStopPreviewMouseLeftButtonUp void
CInstrumentPreviewMouseUp void
CInstrumentSelectionChanged void
CPlaySpeedSelectionChanged void
CSelectedInput_OnSelectionChanged void
CTunesSelectionChanged void
ChordChanged void
DehightlightNote void
FreeColor void
FretMouseDown void
FretMouseLeave void
FretMouseUp void
FretToggled void
GenerateFretName string
GenerateKeyName string
GetColor Color
HighlightNote void
KeyToggled void
MidiDeviceOnMessageReceived void
ParseFretName Note
ParseKeyName Note
PianoKeyDown void
PianoKeyLeave void
PianoKeyUp void
SetCurrentLine void
SongDragEnter void
SongDrop void
SongTextChanged void
ToggleNote void
ToggleSelectedChord void
UpdateChord void
WindowClosed void
WindowKeyUp void
WindowLoaded void

Public Methods

Method Description
MainWindow ( ) : System
PlayToggled ( ) : void
StopPlayAll ( ) : void

Protected Methods

Method Description
OnPropertyChanged ( string propertyName ) : void

Private Methods

Method Description
AddToggledToSong ( ) : void
BChordPreviewMouseDown ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
BChordPreviewMouseUp ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
BPlayPreviewMouseLeftButtonUp ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
BResetPreviewMouseUp ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
BStopPreviewMouseLeftButtonUp ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
CInstrumentPreviewMouseUp ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
CInstrumentSelectionChanged ( object sender, RoutedEventArgs routedEventArgs ) : void
CPlaySpeedSelectionChanged ( object sender, System.Windows.Controls.SelectionChangedEventArgs e ) : void
CSelectedInput_OnSelectionChanged ( object sender, System.Windows.Controls.SelectionChangedEventArgs e ) : void
CTunesSelectionChanged ( object sender, System.Windows.Controls.SelectionChangedEventArgs e ) : void
ChordChanged ( object sender, System.Windows.Controls.SelectionChangedEventArgs e ) : void
DehightlightNote ( Note note ) : void
FreeColor ( Color color ) : void
FretMouseDown ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
FretMouseLeave ( object sender, System.Windows.Input.MouseEventArgs e ) : void
FretMouseUp ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
FretToggled ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
GenerateFretName ( byte stringNumber, byte fret ) : string
GenerateKeyName ( Note note ) : string
GetColor ( ) : Color
HighlightNote ( Note note, System.Windows.Shapes.Shape major = null ) : void
KeyToggled ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
MidiDeviceOnMessageReceived ( object sender, NAudio.Midi.MidiInMessageEventArgs e ) : void
ParseFretName ( string str ) : Note
ParseKeyName ( string data ) : Note
PianoKeyDown ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
PianoKeyLeave ( object sender, System.Windows.Input.MouseEventArgs e ) : void
PianoKeyUp ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
SetCurrentLine ( int line ) : void
SongDragEnter ( object sender, System.Windows.DragEventArgs e ) : void
SongDrop ( object sender, System.Windows.DragEventArgs e ) : void
SongTextChanged ( object sender, System.Windows.Controls.TextChangedEventArgs e ) : void
ToggleNote ( Note note, System.Windows.Shapes.Shape major = null ) : void
ToggleSelectedChord ( ) : void
UpdateChord ( ) : void
WindowClosed ( object sender, EventArgs e ) : void
WindowKeyUp ( object sender, System.Windows.Input.KeyEventArgs e ) : void
WindowLoaded ( object sender, RoutedEventArgs e ) : void

Method Details

MainWindow() public method

public MainWindow ( ) : System
return System

OnPropertyChanged() protected method

protected OnPropertyChanged ( string propertyName ) : void
propertyName string
return void

PlayToggled() public method

public PlayToggled ( ) : void
return void

StopPlayAll() public method

public StopPlayAll ( ) : void
return void

Property Details

InstrumentNames public_oe property

public string[] InstrumentNames
return string[]