示例#1
0
 /// <summary>
 /// This method refers to ServerConfigurationManager class --> IsEmpty() method
 /// in 'Asgardeo.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();
     }
 }
示例#2
0
        /// <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();
        }