예제 #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();
        }
예제 #2
0
 partial void DeletePhoneSystem(PhoneSystem instance);
예제 #3
0
 partial void UpdatePhoneSystem(PhoneSystem instance);
예제 #4
0
 partial void InsertPhoneSystem(PhoneSystem instance);
예제 #5
0
		private void detach_PhoneSystems(PhoneSystem entity)
		{
			this.SendPropertyChanging();
			entity.BaseSystemType = null;
		}