Esempio n. 1
0
        public void UpdateText()
        {
            string s;

            switch (c.JointPosition)
            {
            case RcJointPosition.North:
                s = "N:";
                break;

            case RcJointPosition.South:
                s = "S:";
                break;

            case RcJointPosition.East:
                s = "E:";
                break;

            case RcJointPosition.West:
                s = "W:";
                break;

            default:
                s = "";
                break;
            }
            this.Text       = s + c.ToString();
            this.ImageIndex = (int)RcChipBase.CheckType(c);
        }
Esempio n. 2
0
 public RcTreeNode(RcChipBase chip) : base()
 {
     this.Chip       = chip;
     this.ImageIndex = this.SelectedImageIndex = (int)RcChipBase.CheckType(chip);
     if (Array.Exists(chip.Child, x => x != null))
     {
         foreach (var c in chip.Child)
         {
             if (c != null)
             {
                 this.Nodes.Add(new RcTreeNode(c));
             }
         }
     }
 }