#region "Implement the singleton of this window class. The singleton class is often used for windows opened by the main window with the show() method. Only one object of this type will be opened after using the singleton"
//1. Privatize the constructor so that it is impossible to new outside (open heap space, create objects, and call constructors)
private FStudentMan()
{
InitializeComponent();
}
//2. Create a static private form class variable
private static FStudentMan single;
//3. Create a static public method to return the form class object.
public static FStudentMan GetSingle()
{
if (single == null||)
{
single=new FStudentMan();
}
return single;
}
#endregion