C# Class RazorPad.ViewModels.RazorTemplateViewModel

Inheritance: ViewModelBase
显示文件 Open project: RazorPad/RazorPad Class Usage Examples

Public Methods

Method Description
Execute ( ) : void
Parse ( ) : void
RazorTemplateViewModel ( RazorDocument document = null, ModelBuilders modelBuilderFactory = null, ModelProviders modelProviders = null ) : System

Protected Methods

Method Description
Refresh ( ) : void

Private Methods

Method Description
AttachToModelProviderEvents ( IModelProvider modelProvider ) : void
DetachFromModelProviderEvents ( IModelProvider oldModelProvider ) : void
OnRazorPadError ( object sender, RazorPadErrorEventArgs e ) : void
OnTemplateChanged ( object sender, EventArgs args ) : void
UpdateIsDirty ( ) : void
UpdateModelProvider ( IModelProvider newModelProvider ) : void
UpdateModelProvider ( string providerName ) : void

Method Details

Execute() public method

public Execute ( ) : void
return void

Parse() public method

public Parse ( ) : void
return void

RazorTemplateViewModel() public method

public RazorTemplateViewModel ( RazorDocument document = null, ModelBuilders modelBuilderFactory = null, ModelProviders modelProviders = null ) : System
document RazorDocument
modelBuilderFactory RazorPad.UI.ModelBuilders.ModelBuilders
modelProviders ModelProviders
return System

Refresh() protected method

protected Refresh ( ) : void
return void