private void frmmdi_Load(object sender, EventArgs e) { frmmenu frmm1 = new frmmenu(); frmm1.MdiParent = this; frmm1.Show(); frmmdi.frmMain = this; }
private void frmmdi_Load(object sender, EventArgs e) { int i = db1.countRecord("SELECT Count(*) FROM tbl_branch"); if (i < 1) { frmbranch1.MdiParent = this; frmbranch1.Show(); } frmm1.MdiParent = this; frmm1.Show(); frmmdi.frmMain = this; }
private void frmpatch_Load(object sender, EventArgs e) { frmmdi f1 = new frmmdi(); if (key_Software1.GetRegister()) { this.Dispose(false); f1.Show(); } else { return; } }