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

sascha.ma...@mailbox.org <mailto:sascha.ma...@mailbox.org>
GPG: 0x168428cdb1f20ab1
<http://pgpkey.org/pks/lookup?op=vindex&search=0x168428cdb1f20ab1&fingerprint=on>
jabber:sascha.ma...@jabber.org <jabber:sascha.ma...@jabber.org>


Maifeldstraße 10
56727 Mayen
mobile: +49-1573-9242730
home: +49-2651-4014045
https://saigkill.github.io

Twitter <https://twitter.com/saigkill> Facebook
<https://www.facebook.com/sascha.manns> LinkedIn
<https://de.linkedin.com/in/saigkill> Skype <skype:schurik0815?call>
Github <https://github.com/saigkill> Xing
<https://www.xing.com/profile/Sascha_Manns4>

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Gtk-sharp-list maillist  -  Gtk-sharp-list@lists.dot.net
http://lists.dot.net/mailman/listinfo/gtk-sharp-list

Reply via email to