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 (<[email protected]>) 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 - [email protected] > http://lists.dot.net/mailman/listinfo/gtk-sharp-list >
_______________________________________________ Gtk-sharp-list maillist - [email protected] http://lists.dot.net/mailman/listinfo/gtk-sharp-list
