private void btnTReg_ItemClick(object sender, ItemClickEventArgs e) { CommFun.DW1.Text = "Tenants Register"; radPanel1.Controls.Clear(); frmTenantReg frmTenants = new frmTenantReg(); frmTenants.TopLevel = false; frmTenants.FormBorderStyle = Alias.FormBorderStyle.None; frmTenants.Dock = DockStyle.Fill; frmTenants.Radpanel = radPanel1; radPanel1.Controls.Add(frmTenants); frmTenants.Show(); }
private void btnExit_ItemClick(object sender, ItemClickEventArgs e) { if (BsfGlobal.g_bWorkFlow == true) { Cursor.Current = Cursors.WaitCursor; frmTenantReg frmProg = new frmTenantReg(); frmTenantReg.m_oDW.Hide(); Close(); Cursor.Current = Cursors.Default; } else { Close(); } }