[Gtk-sharp-list] Store GUI Output in Properties

Baltasar García Perez-Schofield baltasarq at gmail.com
Wed Jan 11 13:52:52 UTC 2017


Hi, Sascha,

That's mostly correct. The code after Application.Run() is only executed
when the application finishes.
This is event-oriented programming: your program does not go top to bottom,
but instead some code (and event handler) is executed when the user does
something like clicking a button, resizes a window, or enters information
in a textbox.

You should have, say,  a button with the text "Create publication" which
should fire Engine.Publication.PublicationCreate() in its click event
handler.

-- Baltasar



El mié., 11 ene. 2017 a las 14:01, Sascha Manns (<Sascha.Manns at mailbox.org>)
escribió:

> Hi Baltasar,
>
>
> i've changed that code, but nothing happens after clicking on ok.
>
> I have the Program.cs:
>
> public static void Main (string[] args)
>         {
>
>             Application.Init ();
>             MainWindow win = new MainWindow ();
>             win.Show ();
>             Application.Run ();
>
>             // For debug
>             Console.Write("Application.Run succeeded");
>
>             Engine.Publication.PublicationCreate();
>         }
>
> And it looks like the part after Application.Run() isn't executed.
>
> Greetings
> Sascha
>
> _______________________________________________
> Gtk-sharp-list maillist  -  Gtk-sharp-list at lists.dot.net
> http://lists.dot.net/mailman/listinfo/gtk-sharp-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.dot.net/pipermail/gtk-sharp-list/attachments/20170111/65d8b2fc/attachment.html>


More information about the Gtk-sharp-list mailing list