Beispiel #1
0
 private void Page_Loaded(object sender, RoutedEventArgs e)
 {
     cfgServer = MyManager.GetConfig("server");
     if (cfgServer == null)
     {
         cfgServer       = new MyConfig();
         cfgServer.MyKey = "server";
     }
     cfgUserToken = MyManager.GetConfig("usertoken");
     if (cfgUserToken == null)
     {
         cfgUserToken       = new MyConfig();
         cfgUserToken.MyKey = "usertoken";
     }
     this.txtServer.Text    = cfgServer.MyVal;
     this.txtUserToken.Text = cfgUserToken.MyVal;
 }