C# Class PackageExplorerViewModel.ViewContentCommand

Inheritance: CommandBase, ICommand
显示文件 Open project: grendello/nuget Class Usage Examples

Public Methods

Method Description
CanExecute ( object parameter ) : bool
Execute ( object parameter ) : void
RaiseCanExecuteChanged ( ) : void
ViewContentCommand ( PackageViewModel packageViewModel ) : System

Private Methods

Method Description
DetermineLanguage ( string name ) : SourceLanguageType
IsBinaryFile ( string path ) : bool
ReadFileContent ( PackageFile file, long &size ) : string
ShowFile ( PackageFile file ) : void

Method Details

CanExecute() public method

public CanExecute ( object parameter ) : bool
parameter object
return bool

Execute() public method

public Execute ( object parameter ) : void
parameter object
return void

RaiseCanExecuteChanged() public method

public RaiseCanExecuteChanged ( ) : void
return void

ViewContentCommand() public method

public ViewContentCommand ( PackageViewModel packageViewModel ) : System
packageViewModel PackageViewModel
return System