Example #1
0
 //
 //  Function:   public void Remove_User(int user_type, int index_no)
 //
 //  Arguments:  int user_type = Type of user to remove (0 = System User, 1 = Site)
 //              int index_no = Index number of user to remove from list
 //
 //  Purpose:    Removes an entire record of a user at a certain index
 //
 public void Remove_User(int user_type, int index_no)
 {
     User_Name.RemoveAt(index_no);
     User_ID.RemoveAt(index_no);
     Access.RemoveAt(index_no);
     if (user_type == 1)
     {
         Site_User_ID.RemoveAt(index_no);
         Site_ID.RemoveAt(index_no);
         View_Resources.RemoveAt(index_no);
         Add_Resources.RemoveAt(index_no);
         Modify_Resources.RemoveAt(index_no);
         Del_Resources.RemoveAt(index_no);
         View_Tickets.RemoveAt(index_no);
         Add_Tickets.RemoveAt(index_no);
     }
 }