private void mnuClearAddress_Click(object sender, EventArgs e) { OperationCode opCode = VisualInstruction.OpCode; if ((!VisualInstruction.IsDisposed) && (opCode != OperationCode.LineBegin && opCode != OperationCode.ParallelBranchBegin && opCode != OperationCode.ParallelBranchEnd)) { VisualInstruction.SetOperand(0, null); VisualInstruction.Refresh(); } }
public void VisualInstruction_Selected(VisualInstructionUserControl visualInstruction, VisualLine visualLine) { if (VisualInstruction != null) { if (!VisualInstruction.IsDisposed) { if (!VisualInstruction.Equals(visualInstruction)) { VisualInstruction.Selected = false; VisualInstruction.Refresh(); } } } VisualInstruction = visualInstruction; SelectedVisualLine = visualLine; }