private void _nudgeNodeUp() { ProtocolNode cur = getSelNode(); NudgeUpCmd cmd = new NudgeUpCmd(cur); cmd.Execute(); mProtocolTreeView.SelectedNode = cur; }
private void _nudgeNodeUp() { var cur = getSelNode(); if (cur != null) { var cmd = new NudgeUpCmd(cur); cmd.Execute(); mProtocolTreeView.SelectedNode = cur; } }