Re: [Gtk-sharp-list] Properties empty after connection

2017-01-13 Thread Baltasar García Perez-Schofield
Hi, Sascha,

> can it be that the defined Properties with public string aren't available
> solution wide? That three Properties are set in PublicanCreator project but
> checked into the Engine project.
>
>
No, public means that it is available to everyone.

Sascha, besides the last answer, take into account that combo boxes can
have no element chosen. In that case, ActiveIndex returns -1, and I suppose
that ActiveText would return "".

I usually do:

==
cbCombo.ActiveIndex = Math.Max( cbCombo.ActiveIndex, 0 );
==
Provided that element 0 is the default one.

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


Re: [Gtk-sharp-list] Properties empty after connection

2017-01-13 Thread Brandon Perry

> On Jan 13, 2017, at 2:14 PM, Sascha Manns  wrote:
> 
> Hi List,
> 
> can it be that the defined Properties with public string aren't available 
> solution wide? That three Properties are set in PublicanCreator project but 
> checked into the Engine project.
> 
> 

Or you’ve misimplemented some inheritance and you are actually hiding your base 
class properties, and assigning values to a subclass property that’s masking 
the properties you are printing.

> Greetings Sascha
> 
> On 13.01.2017 20:50, Sascha Manns wrote:
>> Hello list,
>> 
>> i have a little question.
>> 
>> I have defined 3 Properties:
>> 
>> public string PublicationTitle { get; set; }
>> public string PlaceOfAction { get; set; }
>> public string DocType { get; set; }
>> And a handler:
>> protected void OnBtnGoClicked (object sender, EventArgs e)
>> {
>>PublicationTitle = entryTitle.Text;
>>PlaceOfAction = cbPointOfAction.ActiveText;
>>DocType = cbTypeOfPublication.ActiveText;
>>Publication.Create();
>> }
>> After pressing the button it should fill the Properties with the content of 
>> the entrybox and comboboxes.
>> 
>> The launching of Publication.Create() goes fine. Inside that method it runs 
>> the method Engine.LoadXmlData() which reads in some content for other 
>> Properties from App.config file. On the end of this method i check if the 
>> Properties are filled. But it looks like there are empty:
>> 
>> --Debug -
>> PublicationTitle:
>> PlaceOfAction:
>> Firstname:
>> Surnamae:
>> Language:
>> --Debug -
>> 
>> The GUI part is placed there: 
>> https://github.com/saigkill/PublicanCreators/blob/master/PublicanCreators/MainWindow.cs
>>  
>> 
>> 
>> Maybe anyone knows what happend?
>> --
>> Sascha Manns
>> sascha.ma...@mailbox.org 
>> GPG: 0x168428cdb1f20ab1 
>> 
>> jabber: sascha.ma...@jabber.org 
>> 
>> Maifeldstraße 10
>> 56727 Mayen
>> mobile: +49-1573-9242730
>> home: +49-2651-4014045
>> https://saigkill.github.io 
>>    
>>   > Attachment.gif>   
>>  > Attachment.png>   > Attachment.png>   > Attachment.png>  > Attachment.gif>
>> 
>> 
>> 
>> ___
>> Gtk-sharp-list maillist  -  Gtk-sharp-list@lists.dot.net 
>> 
>> http://lists.dot.net/mailman/listinfo/gtk-sharp-list 
>> 
> 
> --
>  
> Sascha Manns
> sascha.ma...@mailbox.org 
> GPG: 0x168428cdb1f20ab1 
> 
> jabber: sascha.ma...@jabber.org 
> 
> Maifeldstraße 10
> 56727 Mayen
> mobile: +49-1573-9242730
> home: +49-2651-4014045
> https://saigkill.github.io 
>      
>    
>    
>
>    
> 
> 
> ___
> Gtk-sharp-list maillist  -  Gtk-sharp-list@lists.dot.net
> http://lists.dot.net/mailman/listinfo/gtk-sharp-list



signature.asc
Description: Message signed with OpenPGP
___
Gtk-sharp-list maillist  -  Gtk-sharp-list@lists.dot.net
http://lists.dot.net/mailman/listinfo/gtk-sharp-list


Re: [Gtk-sharp-list] Properties empty after connection

2017-01-13 Thread Sascha Manns
Hi List,

can it be that the defined Properties with public string aren't
available solution wide? That three Properties are set in
PublicanCreator project but checked into the Engine project.

Greetings Sascha


On 13.01.2017 20:50, Sascha Manns wrote:
>
> Hello list,
>
> i have a little question.
>
> I have defined 3 Properties:
>
> public string PublicationTitle { get; set; } 
> public string PlaceOfAction { get; set; } 
> public string DocType { get; set; } 
> And a handler:
> protected void OnBtnGoClicked (object sender, EventArgs e)
> {
>PublicationTitle = entryTitle.Text;
>PlaceOfAction = cbPointOfAction.ActiveText;
>DocType = cbTypeOfPublication.ActiveText;
>Publication.Create();
> }
> After pressing the button it should fill the Properties with the
> content of the entrybox and comboboxes.
>
> The launching of Publication.Create() goes fine. Inside that method it
> runs the method Engine.LoadXmlData() which reads in some content for
> other Properties from App.config file. On the end of this method i
> check if the Properties are filled. But it looks like there are empty:
>
> --Debug -
> PublicationTitle:
> PlaceOfAction:
> Firstname:
> Surnamae:
> Language:
> --Debug -
>
> The GUI part is placed there:
> https://github.com/saigkill/PublicanCreators/blob/master/PublicanCreators/MainWindow.cs
>
> Maybe anyone knows what happend?
> -- 
>
> Sascha Manns
> sascha.ma...@mailbox.org 
> GPG: 0x168428cdb1f20ab1
> 
> jabber:sascha.ma...@jabber.org 
>
>
> Maifeldstraße 10
> 56727 Mayen
> mobile: +49-1573-9242730
> home: +49-2651-4014045
> https://saigkill.github.io
>
> Twitter  Facebook
>  LinkedIn
>  Skype 
> Github  Xing
> 
>
>
>
> ___
> Gtk-sharp-list maillist  -  Gtk-sharp-list@lists.dot.net
> http://lists.dot.net/mailman/listinfo/gtk-sharp-list

-- 



Sascha Manns
sascha.ma...@mailbox.org 
GPG: 0x168428cdb1f20ab1

jabber:sascha.ma...@jabber.org 


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

Twitter  Facebook
 LinkedIn
 Skype 
Github  Xing




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