예제 #1
0
 public Auth(MainWindow parent, int type)
 {
     Parent = parent;
     InitializeComponent();
     tName.Focus();
     displayMain = true;
     users       = ConfigParser.ParseUser();
     Type        = type;
 }
예제 #2
0
 public Config(MainWindow parent, UserInfo ui)
 {
     Parent = parent;
     UI     = ui;
     InitializeComponent();
     users = ConfigParser.ParseUser();
     userListGrid.ItemsSource = users;
     if (UI.Group != UserGroup.root)
     {
         userListGrid.IsReadOnly = true;
         S1.IsEnabled            = false;
         S2.IsEnabled            = false;
         S3.IsEnabled            = false;
         btnSaveA.IsEnabled      = false;
         btnSaveB.IsEnabled      = false;
         btnReset.IsEnabled      = false;
         btnAddUser.IsEnabled    = false;
     }
     config       = ConfigParser.ParseConfig();
     S1.IsChecked = config[0];
     S2.IsChecked = config[1];
     S3.IsChecked = config[2];
 }