/// <summary> /// Crea el control para los parametros de tipo <c>int</c>. /// </summary> /// <param name="desc"> /// A <see cref="BitmapProcessPropertyDescription"/> /// </param> private void CreateIntWidget(BitmapProcessPropertyDescription desc) { layout.Add(new Label(desc.Description+":")); SpinButton spin = new Gtk.SpinButton(0,1000,1); spin.Numeric = false; if(desc.Min != -1 && desc.Max != -1) { spin.SetRange(desc.Min,desc.Max); } int val = (int)info.GetValue(process,null); spin.Value=val; widget = spin; }
/// <summary> /// Crea el control para los parametros de tipo <c>bool</c>. /// </summary> /// <param name="desc"> /// La descripcion del parametro. /// </param> private void CreateBoolWidget(BitmapProcessPropertyDescription desc) { CheckButton check = new CheckButton(desc.Description); check.Active = (bool)info.GetValue(process,null); widget = check; }