Пример #1
0
 public static frmSanPham CreateInstance()
 {
     if (_singleton == null)
     {
         _singleton = new frmSanPham();
     }
     return(_singleton);
 }
Пример #2
0
 private void frmSanPham_FormClosed(object sender, FormClosedEventArgs e)
 {
     _singleton = null;
 }