Пример #1
0
 private void btnChangeProblem_Click(object sender, EventArgs e)
 {
     // we add a new problem set to the selected student for them
     for (int i = 0; i < EndUserList.Count; i++)
     {
         try
         {
             if (ddlAdminSelects.SelectedItem.ToString() == EndUserList[i].ScreenName)
             {
                 if (EndUserList[i].UserType == UserType.Student)
                 {
                     Problem_Setting_Screen_add confgProblems = new Problem_Setting_Screen_add(EndUserList[i]);
                     confgProblems.ShowDialog();
                 }
             }
         }
         catch (NullReferenceException x)
         {
             //do nothing
         }
     }
 }
        private void btnChangeProblem_Click(object sender, EventArgs e)
        {
            // we add a new problem set to the selected student for them  
            for (int i = 0; i < EndUserList.Count; i++)
            {
                try
                {
                    if (ddlAdminSelects.SelectedItem.ToString() == EndUserList[i].ScreenName)
                    {
                        if (EndUserList[i].UserType == UserType.Student)
                        {
                            Problem_Setting_Screen_add confgProblems = new Problem_Setting_Screen_add(EndUserList[i]);
                            confgProblems.ShowDialog();

                        }
                    }
                }
                catch (NullReferenceException x)
                {
                    //do nothing
                }
            }
        }