コード例 #1
0
 void AppendEnumItem(FieldInfo info)
 {
     if (info.Name.Equals ("value__"))
         return;
     if (fieldsToHide.Contains (info.GetValue (null)))
         return;
     string item = info.GetEnumTitle ();
     //string hint = info.GetEnumHint ();
     //p = (Gdk.Pixbuf) info.GetEnumIcon();
     //if (p != null)
     //	item.Image = new Gtk.Image (p);
     //if (!String.IsNullOrEmpty (hint))
     //	item.TooltipText = hint;
     comboListStore.AppendValues (info.GetValue (null), item);
 }
コード例 #2
0
 void AppendEnumItem(FieldInfo info)
 {
     if (info.Name.Equals ("value__"))
         return;
     if (fieldsToHide.Contains (info.GetValue (null)))
         return;
     string item = UseShortTitle ? info.GetShortTitle () : info.GetEnumTitle ();
     comboListStore.AppendValues (item, info.GetValue (null));
 }