コード例 #1
0
 public static frmDonHang CreateInstance()
 {
     if (_singleton == null)
     {
         _singleton = new frmDonHang();
     }
     return(_singleton);
 }
コード例 #2
0
 private void frmDonHang_FormClosed(object sender, FormClosedEventArgs e)
 {
     _singleton = null;
 }