Example #1
0
        public UcCabinet(int position, List<Card> cards, string cabinetName, PhoneSystem system)
        {
            InitializeComponent();

            if (position > (1 + system.ExpansionCabinets))
                throw new Exception("Too many expansion cabinets added to system.");

            if (position == 1)
            {
                _slotsInCabinet = system.SlotsInBaseCabinet;
                _startingSlotNum = 1;
                _endingSlotNum = _slotsInCabinet;
            }
            else
            {
                _slotsInCabinet = system.SlotsInExpansion;
                _startingSlotNum = system.SlotsInBaseCabinet + ((position - 2) * system.SlotsInExpansion) + 1;
                _endingSlotNum = _startingSlotNum + _slotsInCabinet - 1;
            }

            _position = position;
            _cards = cards;
            _cabinetName = cabinetName;

            SetSlotLabels();
            SetCboCards();
            SetCabinetName();

            SetBackColor();
            SetCabinetHeight();
        }
Example #2
0
 partial void DeletePhoneSystem(PhoneSystem instance);
Example #3
0
 partial void UpdatePhoneSystem(PhoneSystem instance);
Example #4
0
 partial void InsertPhoneSystem(PhoneSystem instance);
Example #5
0
		private void detach_PhoneSystems(PhoneSystem entity)
		{
			this.SendPropertyChanging();
			entity.BaseSystemType = null;
		}