<p dir="ltr"><br>
Hi Sascha,</p>
<p dir="ltr">The fact of having public properties with the same name in classes, say, A and B does not mean that instances of that clases automatically have that properties in communication. If you want to share their values, you will have to assign them explicitely. And certainly, they don't have to have the same name.</p>
<p dir="ltr">===<br>
var a = new A();<br>
var b = new B();</p>
<p dir="ltr">a.Prop = b.Prop;<br>
a.Prop3 = b.Prop4;<br>
===</p>
<p dir="ltr">The sentences above are the only way to share values between properties belonging to objects 'a' and 'b'.</p>
<p dir="ltr">-- Baltasar<br>
</p>
<br><div class="gmail_quote"><div dir="ltr">El sáb., 4 feb. 2017 18:03, Sascha Manns <<a href="mailto:Sascha.Manns@mailbox.org">Sascha.Manns@mailbox.org</a>> escribió:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div text="#000000" bgcolor="#FFFFFF" class="gmail_msg">
    <p class="gmail_msg">Hi Baltasar,<br class="gmail_msg">
    </p></div><div text="#000000" bgcolor="#FFFFFF" class="gmail_msg">
    <br class="gmail_msg">
    <div class="m_374224109536837107moz-cite-prefix gmail_msg">On 04.02.2017 10:53, Baltasar García
      Perez-Schofield wrote:<br class="gmail_msg">
    </div>
    <blockquote type="cite" class="gmail_msg">
      <div dir="ltr" class="gmail_msg">Hi, Sascha,
        <div class="gmail_quote gmail_msg">
          <blockquote class="gmail_quote gmail_msg" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div text="#000000" bgcolor="#FFFFFF" class="gmail_msg">
              <blockquote type="cite" class="gmail_msg">
                <p class="gmail_msg">Currently i'm putting input to the
                  properties in Glade.cs:<br class="gmail_msg">
                </p>
                <p class="gmail_msg"> </p>
                <pre style="background-color:#1e1e1e;color:#dcdcdc;font-family:'DejaVu Sans Mono';font-size:10.5pt" class="gmail_msg">PublicationTitle = entryTitle.Text;</pre>
                <p class="gmail_msg"> </p>
                <p class="gmail_msg"> </p>
                <div class="m_374224109536837107m_3834661415634479782moz-signature gmail_msg">
                  <pre style="background-color:#1e1e1e;color:#dcdcdc;font-family:'DejaVu Sans Mono';font-size:10.5pt" class="gmail_msg">Environment = cboEnvironment.ActiveText;</pre>
                  <pre style="background-color:#1e1e1e;color:#dcdcdc;font-family:'DejaVu Sans Mono';font-size:10.5pt" class="gmail_msg">DocType = cboDocType.ActiveText;</pre>
                  <pre style="background-color:#1e1e1e;color:#dcdcdc;font-family:'DejaVu Sans Mono';font-size:10.5pt" class="gmail_msg">Language = entryLanguage.Text;</pre>
                  <font class="gmail_msg" color="#000000">In
                    GetConfig.cs it reads the App.config and connects
                    them to the properties and gives out all properties
                    on the terminal. <br class="gmail_msg">
                    But it looks like the PublicationTitle, Environment,
                    DocType and Language are empty.</font></div>
              </blockquote>
            </div>
          </blockquote>
          <div class="gmail_msg"><br class="gmail_msg">
          </div>
          <div class="gmail_msg">You're not connecting PublicationTitle, Environment or
            DocType to anything. In getconfig.cs:</div>
          <div class="gmail_msg"><br class="gmail_msg">
          </div>
          <div class="gmail_msg">==</div>
          <div class="gmail_msg">
            <div class="gmail_msg">        public static string PublicationTitle { get;
              set; }</div>
            <div class="gmail_msg">        public static string Environment { get; set; }</div>
            <div class="gmail_msg">        public static string DocType { get; set; }</div>
          </div>
          <div class="gmail_msg">...</div>
          <div class="gmail_msg">
            <div class="gmail_msg">var dictionary = new Dictionary<string, string>()</div>
            <div class="gmail_msg">            {</div>
            <div class="gmail_msg">                {"PublicationTitle", PublicationTitle},</div>
            <div class="gmail_msg">                {"DocType", DocType},</div>
            <div class="gmail_msg">                {"Environment", Environment},</div>
            <div class="gmail_msg">                {"Language", Language},</div>
            <div class="gmail_msg">                {"Firstname", Firstname},</div>
            <div class="gmail_msg">                {"Surname", Surname},</div>
          </div>
          <div class="gmail_msg">==</div>
          <div class="gmail_msg"><br class="gmail_msg">
          </div>
        </div>
      </div>
    </blockquote></div><div text="#000000" bgcolor="#FFFFFF" class="gmail_msg">
    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?</div><div text="#000000" bgcolor="#FFFFFF" class="gmail_msg"><br class="gmail_msg">
    <br class="gmail_msg">
    <blockquote type="cite" class="gmail_msg">
      <div dir="ltr" class="gmail_msg">
        <div class="gmail_quote gmail_msg">
          <div class="gmail_msg">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.</div>
          <div class="gmail_msg"><br class="gmail_msg">
          </div>
          <div class="gmail_msg">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.</div>
          <div class="gmail_msg"><br class="gmail_msg">
          </div>
          <div class="gmail_msg">===</div>
          <div class="gmail_msg">var config = new GetConfig();</div>
          <div class="gmail_msg">config.PublicationTitle = PublicationTitle;</div>
          <div class="gmail_msg">config.DocType = DocType;</div>
          <div class="gmail_msg">condig.Language = Language;</div>
          <div class="gmail_msg">===</div>
        </div>
      </div>
    </blockquote></div><div text="#000000" bgcolor="#FFFFFF" class="gmail_msg">
    Thank you very much for that inspiration. I tried it out and:<br class="gmail_msg">
    PublicationTitle: <br class="gmail_msg">
    DocType: Book<br class="gmail_msg">
    Environment: Private<br class="gmail_msg">
    Language: <br class="gmail_msg">
    <br class="gmail_msg">
    So the comboboxtext elements are placing the value on the right
    place. Can i do anything to make the entrybox value available too?<br class="gmail_msg">
    <br class="gmail_msg">
    Greetings Sascha<br class="gmail_msg">
    <div class="m_374224109536837107moz-signature gmail_msg">-- <br class="gmail_msg">
      <div class="gmail_msg"></div></div></div><div text="#000000" bgcolor="#FFFFFF" class="gmail_msg"><div class="m_374224109536837107moz-signature gmail_msg"><div class="gmail_msg">
        <p style="font-family:Helvetica,Arial,sans-serif;font-size:10px;line-height:12px;margin-bottom:10px" class="gmail_msg"> <a style="text-decoration:none" href="https://saigkill.tuxfamily.org" class="gmail_msg" target="_blank"> <img src="cid:part1.C741473A.F81148F5@mailbox.org" alt="" border="0" width="54" height="80" class="gmail_msg"> </a> </p></div></div></div><div text="#000000" bgcolor="#FFFFFF" class="gmail_msg"><div class="m_374224109536837107moz-signature gmail_msg"><div class="gmail_msg">
        <p style="font-family:Helvetica,Arial,sans-serif;font-size:10px;line-height:12px;color:rgb(33,33,33);margin-bottom:10px" class="gmail_msg"><span style="font-weight:bold;color:rgb(33,33,33);display:inline" class="gmail_msg">Sascha Manns</span> <span style="color:#212121" class="gmail_msg"></span> <span style="display:inline" class="gmail_msg"><br class="gmail_msg">
          </span> <a href="mailto:Sascha.Manns@mailbox.org" style="color:rgb(71,124,204);text-decoration:none;display:inline" class="gmail_msg" target="_blank">Sascha.Manns@mailbox.org</a><br class="gmail_msg">
          <span class="gmail_msg">GPG:</span> <a href="http://pgpkey.org/pks/lookup?op=vindex&search=0x168428cdb1f20ab1&fingerprint=on" style="color:rgb(71,124,204);text-decoration:none;display:inline" class="gmail_msg" target="_blank">0x168428cdb1f20ab1</a><br class="gmail_msg">
          <span class="gmail_msg">jabber:<span class="gmail_msg"> <a style="color:rgb(71,124,204);text-decoration:none;display:inline" class="gmail_msg">Sascha.Manns@jabber.org</a> </span></span></p>
        <p style="font-family:Helvetica,Arial,sans-serif;font-size:10px;line-height:12px;margin-bottom:10px" class="gmail_msg"> <span style="display:inline" class="gmail_msg"><br class="gmail_msg">
          </span> <span style="color:rgb(33,33,33);display:inline" class="gmail_msg">Maifeldstraße 10</span><br class="gmail_msg">
          <span style="display:inline" class="gmail_msg"></span> <span style="color:rgb(33,33,33);display:inline" class="gmail_msg">56727 Mayen</span><br class="gmail_msg">
          <span style="color:rgb(33,33,33);display:inline" class="gmail_msg">mobile:
            +49-1573-9242730</span><br class="gmail_msg">
          <span style="color:rgb(33,33,33);display:inline" class="gmail_msg">home:
            +49-2651-4014045</span> <span style="display:inline" class="gmail_msg"><br class="gmail_msg">
          </span> <a href="https://saigkill.tuxfamily.org" style="color:rgb(71,124,204);text-decoration:none;display:inline" class="gmail_msg" target="_blank">https://saigkill.tuxfamily.org</a> </p>
        <p style="font-size:0px;line-height:0;font-family:Helvetica,Arial,sans-serif" class="gmail_msg"> <a style="text-decoration:none;display:inline" href="https://twitter.com/saigkill" class="gmail_msg" target="_blank">
            <img style="margin-bottom:2px;border:none;display:inline" src="cid:part7.16A2EC85.EB78161F@mailbox.org" alt="Twitter" width="16" height="16" class="gmail_msg"> </a> <span style="white-space:nowrap;display:inline" class="gmail_msg"> <img src="cid:part9.A7A6637F.B51BF3EF@mailbox.org" width="2" class="gmail_msg"> </span>
          <a style="text-decoration:none;display:inline" href="https://www.facebook.com/sascha.manns" class="gmail_msg" target="_blank"> <img style="margin-bottom:2px;border:none;display:inline" src="cid:part10.90E0B321.D05270F6@mailbox.org" alt="Facebook" width="16" height="16" class="gmail_msg"> </a> <span style="white-space:nowrap;display:inline" class="gmail_msg"> <img src="cid:part9.A7A6637F.B51BF3EF@mailbox.org" width="2" class="gmail_msg"> </span>
          <a style="text-decoration:none;display:inline" href="https://de.linkedin.com/in/saigkill" class="gmail_msg" target="_blank"> <img style="margin-bottom:2px;border:none;display:inline" src="cid:part13.07AEB61E.264EEE75@mailbox.org" alt="LinkedIn" width="16" height="16" class="gmail_msg"> </a> <span style="white-space:nowrap;display:inline" class="gmail_msg"> <img src="cid:part9.A7A6637F.B51BF3EF@mailbox.org" width="2" class="gmail_msg"> </span>
          <a style="text-decoration:none;display:inline" class="gmail_msg"> <img style="margin-bottom:2px;border:none;display:inline" src="cid:part16.E66A19A3.E7CE5EA2@mailbox.org" alt="Skype" width="16" height="16" class="gmail_msg"> </a> <span style="white-space:nowrap;display:inline" class="gmail_msg"> <img src="cid:part9.A7A6637F.B51BF3EF@mailbox.org" width="2" class="gmail_msg"> </span>
          <a style="display:inline;text-decoration:none" href="https://github.com/saigkill" class="gmail_msg" target="_blank"> <img style="margin-bottom:2px;border:none;display:inline" src="cid:part19.C7C43197.9510B150@mailbox.org" alt="Github" width="16" height="16" class="gmail_msg"> </a> <span style="white-space:nowrap;display:inline" class="gmail_msg"> <img src="cid:part9.A7A6637F.B51BF3EF@mailbox.org" width="2" class="gmail_msg"> </span>
          <a style="display:inline;text-decoration:none" href="https://www.xing.com/profile/Sascha_Manns4" class="gmail_msg" target="_blank"> <img style="margin-bottom:2px;border:none;display:inline" src="cid:part22.61E25A9C.E3859732@mailbox.org" alt="Xing" width="16" height="16" class="gmail_msg"> </a> <span style="white-space:nowrap;display:inline" class="gmail_msg"> <img src="cid:part9.A7A6637F.B51BF3EF@mailbox.org" width="2" class="gmail_msg"> </span>
        </p>
      </div></div></div>

_______________________________________________<br class="gmail_msg">
Gtk-sharp-list maillist  -  <a href="mailto:Gtk-sharp-list@lists.dot.net" class="gmail_msg" target="_blank">Gtk-sharp-list@lists.dot.net</a><br class="gmail_msg">
<a href="http://lists.dot.net/mailman/listinfo/gtk-sharp-list" rel="noreferrer" class="gmail_msg" target="_blank">http://lists.dot.net/mailman/listinfo/gtk-sharp-list</a><br class="gmail_msg">
</blockquote></div>