SetValue() public method

public SetValue ( object obj, object value ) : void
obj object
value object
return void
Ejemplo n.º 1
0
 static void SetProperties(TypedClassDescriptor klass, Gtk.Widget widget, string[] propNames, GLib.Value[] propVals)
 {
     for (int n = 0; n < propNames.Length; n++)
     {
         foreach (ItemGroup grp in klass.ItemGroups)
         {
             foreach (ItemDescriptor it in grp)
             {
                 if (it is TypedPropertyDescriptor)
                 {
                     TypedPropertyDescriptor prop = (TypedPropertyDescriptor)it;
                     if (prop.GladeName == propNames[n])
                     {
                         prop.SetValue(widget, propVals[n].Val);
                     }
                 }
             }
         }
     }
 }