private void btnAdd_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { if (BsfGlobal.FindPermission("RentRegister-Add") == false) { MessageBox.Show("You don't have Rights to RentRegister-Add", "Information", MessageBoxButtons.OK, MessageBoxIcon.Stop); return; } frmRentEntry frmCompEntry = new frmRentEntry(); if (BsfGlobal.g_bWorkFlow == true) { //BsfGlobal.g_bTrans = true; //BsfGlobal.g_oWindow.Hide(); //frmCompEntry.Panel = BsfGlobal.g_oPanelTrans; //BsfGlobal.g_oPanelTrans.Controls.Clear(); //BsfGlobal.g_oWindowTrans.Text = "Rent Entry"; //BsfGlobal.g_oPanelTrans.Controls.Add(frmCompEntry); BsfGlobal.g_bTrans = true; oPanel = BsfGlobal.GetPanel(frmCompEntry, "Rent Details"); if (oPanel != null) { oPanel.Controls.Clear(); frmCompEntry.TopLevel = false; frmCompEntry.FormBorderStyle = FormBorderStyle.None; frmCompEntry.Dock = DockStyle.Fill; oPanel.Controls.Add(frmCompEntry); //frmflatDet.Execute(m_iRevId); oPanel.Visible = true; Cursor.Current = Cursors.Default; } } else { //Radpanel.Controls.Clear(); //frmCompEntry.Radpanel = Radpanel; //frmCompEntry.TopLevel = false; //frmCompEntry.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; //frmCompEntry.Dock = DockStyle.Fill; //Radpanel.Controls.Add(frmCompEntry); //CommFun.DW1.Text = "Check List"; // radPanel1.Controls.Clear(); //frmCheckListEntry frmCompEntry = new frmCheckListEntry(); frmCompEntry.TopLevel = false; // frmCompEntry.FormBorderStyle = Alias.FormBorderStyle.None; frmCompEntry.Dock = DockStyle.Fill; // radPanel1.Controls.Add(frmCompEntry); frmCompEntry.Show(); } frmCompEntry.Show(); }
private void btnREntry_ItemClick(object sender, ItemClickEventArgs e) { CommFun.DW1.Text = "Rent Entry"; radPanel1.Controls.Clear(); frmRentEntry frmCompEntry = new frmRentEntry(); frmCompEntry.TopLevel = false; frmCompEntry.FormBorderStyle = Alias.FormBorderStyle.None; frmCompEntry.Dock = DockStyle.Fill; radPanel1.Controls.Add(frmCompEntry); frmCompEntry.Show(); }