private void FillComboBoxes() { comboBoxOrientationLock.SuspendLayout(); comboBoxOrientationLock.Items.Clear(); OrientationTypeConverter converter = new OrientationTypeConverter(); for (var orientation = AppleOrientationLock.None; orientation <= AppleOrientationLock.LastValue; orientation++) { comboBoxOrientationLock.Items.Add(converter.ConvertToString(orientation)); } comboBoxOrientationLock.ResumeLayout(); }
private void comboBoxOrientationLock_SelectionChangeCommitted(object sender, EventArgs e) { if (_selectedListBox == SelectedBox.Used) { AppleTargetPlatform currentPlatform = GetCurrentPlatform(); OrientationTypeConverter converter = new OrientationTypeConverter(); string value = (string)comboBoxOrientationLock.SelectedItem; var convertFromString = converter.ConvertFromString(value); if (convertFromString != null) { var orientationLock = (AppleOrientationLock)convertFromString; _allPlatformObjects[currentPlatform].OrientationLock = orientationLock; } } }
private void FillComboBoxes() { comboBoxOrientationLock.SuspendLayout(); comboBoxOrientationLock.Items.Clear(); OrientationTypeConverter converter = new OrientationTypeConverter(); for (var orientation = AppleOrientationLock.None; orientation <= AppleOrientationLock.LastValue; orientation++ ) { comboBoxOrientationLock.Items.Add(converter.ConvertToString(orientation)); } comboBoxOrientationLock.ResumeLayout(); }