Esempio n. 1
0
 /// <summary>
 /// This method refers to ServerConfigurationManager class --> IsEmpty() method
 /// in 'io.asgardio.dotnet.oidc.sdk' library and check whether each and every <app_settings> is
 /// completed in 'app.config' file. If <app_settings> data is empty it'll load the 'ConfigurationPage',
 /// else load the 'LoginPage'.
 /// </summary>
 public App()
 {
     if (ServerConfigurationManager.IsEmpty() == true)
     {
         ConfigurationPage configuration = new ConfigurationPage();
         configuration.Show();
     }
     else
     {
         LoginPage login = new LoginPage();
         login.Show();
     }
 }
        /// <summary>
        /// Button_Click event for 'Update Configuration Details' button.
        /// </summary>
        private void Config_button_click(object sender, RoutedEventArgs e)
        {
            ConfigurationPage config = new ConfigurationPage();

            config.Show();
        }