Пример #1
0
        private void PopulateCombo()
        {
            switch (_currentItem.SubItems[1].Text)
            {
            case "Mesh":
            {
                _currentItemCombo.Items.Add("Automatic");
                foreach (KeyValuePair <string, Type> defn in VertexFormatRegistry.GetAllTypes())
                {
                    _currentItemCombo.Items.Add(defn.Key);
                }
                break;
            }

            case "Position Track":
            case "Rotation Track":
            case "Scale/Shear Track":
            {
                _currentItemCombo.Items.Add("Automatic");
                foreach (KeyValuePair <string, Type> defn in CurveRegistry.GetAllTypes())
                {
                    _currentItemCombo.Items.Add(defn.Key);
                }
                break;
            }
            }
        }
Пример #2
0
 void PopulateCombo()
 {
     if (CurrentItem.SubItems[1].Text == "Mesh")
     {
         CurrentItemCombo.Items.Add("Automatic");
         foreach (var defn in VertexFormatRegistry.GetAllTypes())
         {
             CurrentItemCombo.Items.Add(defn.Key);
         }
     }
     else if (CurrentItem.SubItems[1].Text == "Position Track" ||
              CurrentItem.SubItems[1].Text == "Rotation Track" ||
              CurrentItem.SubItems[1].Text == "Scale/Shear Track")
     {
         CurrentItemCombo.Items.Add("Automatic");
         foreach (var defn in CurveRegistry.GetAllTypes())
         {
             CurrentItemCombo.Items.Add(defn.Key);
         }
     }
 }