/// <summary>
        ///	This method won't fill cabinetBox with items - it must be done separately
        /// in dialog constructor
        /// </summary>
        void FillComboBoxesWithItems()
        {
            try
            {
                foreach (DeviceType type in DeviceType.GetAll())
                {
                    deviceTypeBox.Items.Add(type);
                }
                deviceTypeBox.SelectedIndex = 0;
            }
            catch (NoSuchDataException) { }

            try
            {
                foreach (var ip in IPAddress.GetAll())
                {
                    ipAddressBox.Items.Add(ip);
                }
                ipAddressBox.SelectedIndex = 0;
            }
            catch (NoSuchDataException) { }

            try
            {
                foreach (Corps Corps in Corps.GetAll())
                {
                    corpsBox.Items.Add(Corps);
                }
            }
            catch (NoSuchDataException) { }
        }