No, not necessarily a new button. Try the code you posted.
-- Baltasar

El mié., 11 ene. 2017 a las 15:48, Sascha Manns (<[email protected]>)
escribió:

> Hi Baltasar,
> On 11.01.2017 14:52, Baltasar García Perez-Schofield wrote:
>
> 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.
>
> So if i understand it right, it can combined with:
>
> protected void OnClicked (object sender, EventArgs args){
>
>
>     PublicationTitle = entry2.Text;
>     PlaceOfAction = combobox1.ActiveText;
>     DocType = combobox2.ActiveText;
>     Engine.Publication.Create();}
>
> So the connecting process and the publication process are inside the same
> button. Or is a new button needed?
> --
> Sascha Manns
>
> [email protected]
> GPG: 0x168428cdb1f20ab1
> <http://pgpkey.org/pks/lookup?op=vindex&search=0x168428cdb1f20ab1&fingerprint=on>
> jabber: [email protected]
>
>
> Maifeldstraße 10
> 56727 Mayen
> mobile: +49-1573-9242730 <+49%201573%209242730>
> home: +49-2651-4014045 <+49%202651%204014045>
> https://saigkill.github.io
>
> [image: Twitter] <https://twitter.com/saigkill> [image: Facebook]
> <https://www.facebook.com/sascha.manns> [image: LinkedIn]
> <https://de.linkedin.com/in/saigkill> [image: Skype] [image: Github]
> <https://github.com/saigkill> [image: Xing]
> <https://www.xing.com/profile/Sascha_Manns4>
> _______________________________________________
> 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

Reply via email to