public static DangKi getInstance() { if (singleObject == null) { singleObject = new DangKi(); } return(singleObject); }
private void linkLb_Sign_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { DangKi dk = DangKi.getInstance(); this.Visible = false; if (dk.ShowDialog() == DialogResult.Cancel) { dk.DialogResult = DialogResult.None; this.Visible = true; vl = new ViewLayer(); } else { linkLb_Sign_LinkClicked(sender, e); } // frmDangNhap.ActiveForm.Visible = true; }