static void ColorChanged_cb(IntPtr inst) { try { ColorSelection __obj = GLib.Object.GetObject(inst, false) as ColorSelection; __obj.OnColorChanged(); } catch (Exception e) { GLib.ExceptionManager.RaiseUnhandledException(e, false); } }
public ColorPickerDialog(Color initColor) { this.Build(); this.buttonOk.Name = "MainButton"; this.buttonOk.HasFocus = true; this.SetToDialogStyle((Window)null, true, true, true); if (Platform.IsWindows) { HButtonBox actionArea = this.ActionArea; ButtonBox.ButtonBoxChild buttonBoxChild1 = (ButtonBox.ButtonBoxChild)actionArea[(Widget)this.buttonOk]; ButtonBox.ButtonBoxChild buttonBoxChild2 = (ButtonBox.ButtonBoxChild)actionArea[(Widget)this.buttonCancel]; buttonBoxChild1.Position = 0; buttonBoxChild2.Position = 1; } this.ColorPicker = new ColorSelection(); this.ColorPicker.PreviousColor = initColor; this.ColorPicker.CurrentColor = initColor; this.ColorPicker.HasOpacityControl = false; this.eventbox_bg.Add((Widget)this.ColorPicker); this.ColorPicker.ShowAll(); this.InitKeys(); this.InitMultiLanguage(); }