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; } }
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; } }