Example #1
0
 public SMUAuthenticator()
 {
     this.InitializeComponent();
     if (Settings.Default.SMURole == "SMUSTU\\")
     {
         this.SMUStudent_Click(null, new RoutedEventArgs());
     }
     else if (Settings.Default.SMURole == "SMUSTF\\")
     {
         this.SMUStaff_Click(null, new RoutedEventArgs());
     }
     this.Username.Text        = ExtensionMethods.Decrypt(Settings.Default.SMUUsername, "");
     this.Password.Password    = ExtensionMethods.Decrypt(Settings.Default.SMUPassword, "");
     this.RememberMe.IsChecked = new bool?(Settings.Default.SMURememberMe);
 }
Example #2
0
 public NUSAuthenticator()
 {
     this.InitializeComponent();
     if (Settings.Default.NUSRole == "NUSSTU")
     {
         this.NUSStudent_Click(null, new RoutedEventArgs());
     }
     else if (Settings.Default.NUSRole == "NUSSTF")
     {
         this.NUSStaff_Click(null, new RoutedEventArgs());
     }
     else if (Settings.Default.NUSRole == "NUSEXT")
     {
         this.NUSVisitor_Click(null, new RoutedEventArgs());
     }
     this.Username.Text        = ExtensionMethods.Decrypt(Settings.Default.NUSUsername, "");
     this.Password.Password    = ExtensionMethods.Decrypt(Settings.Default.NUSPassword, "");
     this.RememberMe.IsChecked = new bool?(Settings.Default.NUSRememberMe);
 }