Пример #1
0
 private void Window_Loaded(object sender, RoutedEventArgs e)
 {
     if (IsInsert)
     {
     }
     else
     {
         Operator op = OperatorDAL.GetById(EditId);
         txtUserName.Text     = op.UserName;
         txtRealName.Text     = op.RealName;
         pdxPassword.Password = op.Password;
     }
 }
Пример #2
0
 private void Window_Loaded(object sender, RoutedEventArgs e)
 {
     if (IsInsert)
     {
     }
     else
     {
         OperatorDAL dal = new OperatorDAL();
         Operator    op  = dal.GetById(EditingId);
         txtUserName.Text = op.UserName;
         txtRealName.Text = op.RealName;
     }
 }