PPOGroupTree/GroupStructure.cs
/// <summary>
/// Insert new student into current group
/// </summary>
/// <param name="std"></param>
Insert new student into current group
Insert new student into current group
public void InsertStudent(Student std)
        {
            int i = groups.FindIndex(x => x.getIGroup == std.GroupIndex);
            if (i >= 0)
                groups[i].Insert(std);
            else
                MessageBox.Show("Error on inserting student: Given iGroup does not exist! Try creating group first..", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
        }
public void InsertStudent ( Student std ) { int i = groups . FindIndex ( x => x . getIGroup == std . GroupIndex ) ; if ( i >= 0 ) groups [ i ] . Insert ( std ) ; else MessageBox . Show ( " " , " " , MessageBoxButtons . OK , MessageBoxIcon . Error ) ; }
Insert new student into current group
Insert new student into current group
std
Student
None