예제 #1
0
        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();
        }
예제 #2
0
 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;
         }
     }
 }
예제 #3
0
        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();
        }
예제 #4
0
 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;
         }
     }
 }