Ejemplo n.º 1
0
 /// <summary>
 /// Called when the WebMatrixHost's WorkspaceChanged event fires.
 /// </summary>
 /// <param name="sender">Event source.</param>
 /// <param name="e">Event arguments.</param>
 private void WebMatrixHost_WorkspaceChanged(object sender, WorkspaceChangedEventArgs e)
 {
     _ribbonGroup.IsVisible = e.NewWorkspace is IEditorWorkspace && _isNodeSite;
 }
 /// <summary>
 /// Called when the WebMatrixHost's WorkspaceChanged event fires.
 /// </summary>
 /// <param name="sender">Event source.</param>
 /// <param name="e">Event arguments.</param>
 private void WebMatrixHost_WorkspaceChanged(object sender, WorkspaceChangedEventArgs e)
 {
     _ribbonGroup.IsVisible = e.NewWorkspace is IEditorWorkspace && _isNodeSite;
 }
 private void autoShelve_OnWorkspaceChanged(object sender, WorkspaceChangedEventArgs e)
 {
     _menuAutoShelveNow.Enabled = e.IsWorkspaceValid;
     _menuRunState.Enabled      = e.IsWorkspaceValid;
 }