C# Class GoogleCloudExtension.CloudExplorer.SourceRootViewModelBase

This class implements the basic behaviors for a cloud source's root view model. All source view models _should_ derive from this class but it is not mandatory. This class offers all place holder functionality, common credentials and project check and setting the right state depending on the results from the underlying data source.
Inheritance: TreeHierarchy
Datei anzeigen Open project: GoogleCloudPlatform/google-cloud-visualstudio

Public Methods

Method Description
Initialize ( ICloudSourceContext context ) : void
InvalidateProjectOrAccount ( ) : void
Refresh ( ) : void

Protected Methods

Method Description
LoadDataOverride ( ) : System.Threading.Tasks.Task

Override this function to load and display the data in the control.

OnIsExpandedChanged ( bool newValue ) : void

Private Methods

Method Description
LoadDataWrapper ( ) : System.Threading.Tasks.Task

Method Details

Initialize() public method

public Initialize ( ICloudSourceContext context ) : void
context ICloudSourceContext
return void

InvalidateProjectOrAccount() public method

public InvalidateProjectOrAccount ( ) : void
return void

LoadDataOverride() protected abstract method

Override this function to load and display the data in the control.
protected abstract LoadDataOverride ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task

OnIsExpandedChanged() protected method

protected OnIsExpandedChanged ( bool newValue ) : void
newValue bool
return void

Refresh() public method

public Refresh ( ) : void
return void