private void btnExit_ItemClick(object sender, ItemClickEventArgs e) { if (BsfGlobal.g_bWorkFlow == true) { Cursor.Current = Cursors.WaitCursor; frmReceiptRegister frmProg = new frmReceiptRegister(); frmReceiptRegister.m_oDW.Hide(); this.Close(); Cursor.Current = Cursors.Default; } else { Close(); } }
private void barButtonItem32_ItemClick(object sender, ItemClickEventArgs e) { dwHome.Hide(); documentWindow1.Hide(); dwHome.Text = "Receipt Register"; frmReceiptRegister frm = new frmReceiptRegister() { TopLevel = false }; radPanel1.Controls.Clear(); frm.FormBorderStyle = FormBorderStyle.None; frm.Dock = DockStyle.Fill; radPanel1.Controls.Add(frm); frm.Execute(); dwHome.Show(); }