Ejemplo n.º 1
0
 protected virtual void OnCommandFontColor(object sender, System.EventArgs e)
 {
     ColorDialog dialog = new ColorDialog ();
     if (dialog.Run () == (int) Gtk.ResponseType.Ok) {
         UndoableCommand fontColor = new UndoableCommand (new ChangeAttributeCommand ("Font color",
             FigureAttribute.FontColor, GdkCairoHelper.CairoColor (dialog.Color), this));
         fontColor.Execute ();
     }
     dialog.Destroy ();
 }