예제 #1
0
 private void BtnAddReportToUserClick(object sender, RoutedEventArgs e)
 {
     var selectUserWindow = new SelectUserWindow(1, UserOperationDAL);
     if (selectUserWindow.ShowDialog() == false)
     {
         var entityList = selectUserWindow.SelectUserInfoList;
         if (entityList == null || entityList.Count == 0) return;
         var entity = entityList[0];
         ReportToId = entity.Id;
         TxtReportToUserName.Text = entity.UserDisplayName;
     }
 }
 private void BtnAddUserClick(object sender, RoutedEventArgs e)
 {
     var selectUserWindow = new SelectUserWindow(UserOperationDAL);
     if (selectUserWindow.ShowDialog() == false)
     {
        SettingHelp.AddEntityRange(LvUserName,selectUserWindow.SelectUserInfoList);
     }
 }