Exemplo n.º 1
0
    public MainWindow() : base(Gtk.WindowType.Toplevel)
    {
        Build();

        foreach (var font in FontRenderer.GetImageMagickFonts())
        {
            installedfontscombobox.AppendText(font);
        }

        installedfontscombobox.Active = 0;

        installedfontsradiobutton.Toggled += OnInputFontTypeGroupToggled;
        generatebutton.Released           += OnGenerateButtonReleased;

        transparentbackgroundcheckbutton.Toggled          +=
            (sender, e) => backgroundcolorbutton.Sensitive = !transparentbackgroundcheckbutton.Active;

        previewbutton.Clicked +=
            (sender, e) => PerformRefreshPreview();

        this.KeyReleaseEvent += HandleKeyReleaseEvent;
    }