/// <summary>A node has been selected (whether by user or undo/redo)</summary> /// <param name="sender">Sending object</param> /// <param name="e">Node arguments</param> private void OnNodeSelected(object sender, NodeSelectedArgs e) { this.HideRightHandPanel(); this.ShowRightHandPanel(); this.PopulateContextMenu(e.NewNodePath); Commands.SelectNodeCommand selectCommand = new SelectNodeCommand(e.OldNodePath, e.NewNodePath, this.view); CommandHistory.Add(selectCommand, false); }
/// <summary>A node has been selected (whether by user or undo/redo)</summary> /// <param name="sender">Sending object</param> /// <param name="e">Node arguments</param> private void OnNodeSelected(object sender, NodeSelectedArgs e) { try { this.HideRightHandPanel(); this.ShowRightHandPanel(); } catch (Exception err) { MainPresenter.ShowError(err); } // If an exception is thrown while loding the view, this // shouldn't interfere with the context menu. this.PopulateContextMenu(e.NewNodePath); Commands.SelectNodeCommand selectCommand = new SelectNodeCommand(e.OldNodePath, e.NewNodePath, this.view); CommandHistory.Add(selectCommand, false); }
/// <summary>A node has been selected (whether by user or undo/redo)</summary> /// <param name="sender">Sending object</param> /// <param name="e">Node arguments</param> private void OnNodeSelected(object sender, NodeSelectedArgs e) { this.HideRightHandPanel(); this.ShowRightHandPanel(); PopulateContextMenu(e.NewNodePath); Commands.SelectNodeCommand selectCommand = new SelectNodeCommand(e.OldNodePath, e.NewNodePath, this.view); CommandHistory.Add(selectCommand); }