Beispiel #1
0
        public RoomInstanceAttributes(RoomInstance param) : base(param)
        {
            if (RoomArea == null)
            {
                RoomArea = GH_Capsule.CreateTextCapsule(new Rectangle(), new Rectangle(), GH_Palette.Black, param.RoomArea.ToString());
            }
            RoomName = GH_Capsule.CreateTextCapsule(new Rectangle(), new Rectangle(), GH_Palette.Black, param.RoomName);

            roomBrush = Brushes.Gray;
        }
Beispiel #2
0
 public CapsuleInputBase(GH_Capsule input, RoomInstance roomInstance, RoomInstanceVar roomInstanceVar)
 {
     _input           = input ?? throw new ArgumentNullException(nameof(input));
     _roomInstance    = roomInstance;
     _roomInstanceVar = roomInstanceVar;
 }