C# Class AlphaTab.Wpf.ViewModel.MainViewModel

This viewmodel contains the data and logic for the main application window.
Inheritance: ViewModelBase
Datei anzeigen Open project: CoderLine/alphaTab Class Usage Examples

Public Methods

Method Description
MainViewModel ( IDialogService dialogService, IErrorService errorService ) : System
OpenFile ( ) : void

Opens a new file by loading the file path using the IO service.

ShowScoreInfo ( ) : void

Opens a score info dialog for the current score.

Private Methods

Method Description
InternalOpenFile ( string file ) : void
OpenFile ( string file ) : void

Opens a new file from the specified file path.

UpdateSelectedViewModel ( ) : void

Updates the currently selected viewmodel

Method Details

MainViewModel() public method

public MainViewModel ( IDialogService dialogService, IErrorService errorService ) : System
dialogService IDialogService
errorService IErrorService
return System

OpenFile() public method

Opens a new file by loading the file path using the IO service.
public OpenFile ( ) : void
return void

ShowScoreInfo() public method

Opens a score info dialog for the current score.
public ShowScoreInfo ( ) : void
return void