コード例 #1
0
ファイル: LadderForm.cs プロジェクト: taleswsouza/LadderApp
        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();
            }
        }
コード例 #2
0
ファイル: LadderForm.cs プロジェクト: taleswsouza/LadderApp
 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;
 }