Hi Baltasar,

On 04.02.2017 10:53, Baltasar García Perez-Schofield wrote:
> Hi, Sascha,
>
>>     Currently i'm putting input to the properties in Glade.cs:
>>
>>     PublicationTitle = entryTitle.Text;
>>
>>     Environment = cboEnvironment.ActiveText;
>>     DocType = cboDocType.ActiveText;
>>     Language = entryLanguage.Text;
>>     In GetConfig.cs it reads the App.config and connects them to the
>>     properties and gives out all properties on the terminal.
>>     But it looks like the PublicationTitle, Environment, DocType and
>>     Language are empty.
>
>
> You're not connecting PublicationTitle, Environment or DocType to
> anything. In getconfig.cs:
>
> ==
>         public static string PublicationTitle { get; set; }
>         public static string Environment { get; set; }
>         public static string DocType { get; set; }
> ...
> var dictionary = new Dictionary<string, string>()
>             {
>                 {"PublicationTitle", PublicationTitle},
>                 {"DocType", DocType},
>                 {"Environment", Environment},
>                 {"Language", Language},
>                 {"Firstname", Firstname},
>                 {"Surname", Surname},
> ==
>
BTW: As i understood i can fill a property from one place and use the
value on another place. If the property is labeled as public it is
available in the whole solution. I'snt it so?

> Those are the only apparitions of that properties in the class. Yes,
> the other properties have data, since they are loaded from an XML file.
>
> As far as I understand your project, you should create an instance of
> GetConfig inside Glade, and when the "Run publication" button is
> pressed, you should store that properties in GetConfig so they can
> have a value.
>
> ===
> var config = new GetConfig();
> config.PublicationTitle = PublicationTitle;
> config.DocType = DocType;
> condig.Language = Language;
> ===
Thank you very much for that inspiration. I tried it out and:
PublicationTitle:
DocType: Book
Environment: Private
Language:

So the comboboxtext elements are placing the value on the right place.
Can i do anything to make the entrybox value available too?

Greetings Sascha
-- 

<https://saigkill.tuxfamily.org>

Sascha Manns
[email protected] <mailto:[email protected]>
GPG: 0x168428cdb1f20ab1
<http://pgpkey.org/pks/lookup?op=vindex&search=0x168428cdb1f20ab1&fingerprint=on>
jabber:[email protected] <jabber:[email protected]>


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

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

Reply via email to