コード例 #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;
 }
コード例 #2
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;
 }
コード例 #3
0
 private void autoShelve_OnWorkspaceChanged(object sender, WorkspaceChangedEventArgs e)
 {
     _menuAutoShelveNow.Enabled = e.IsWorkspaceValid;
     _menuRunState.Enabled      = e.IsWorkspaceValid;
 }