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(); }
partial void DeletePhoneSystem(PhoneSystem instance);
partial void UpdatePhoneSystem(PhoneSystem instance);
partial void InsertPhoneSystem(PhoneSystem instance);
private void detach_PhoneSystems(PhoneSystem entity) { this.SendPropertyChanging(); entity.BaseSystemType = null; }