Exemplo n.º 1
0
 private void btnExit_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     if (BsfGlobal.g_bWorkFlow == true)
     {
         Cursor.Current = Cursors.WaitCursor;
         frmCashRegister frmCash = new frmCashRegister();
         frmCashRegister.m_oDW.Hide();
         this.Close();
         Cursor.Current = Cursors.Default;
     }
     else
     {
         Close();
     }
 }
Exemplo n.º 2
0
        private void btnCashRegister_ItemClick(object sender, ItemClickEventArgs e)
        {
            dwHome.Hide();
            documentWindow1.Hide();
            dwHome.Text = "Cash Receipt Register";
            frmCashRegister frm = new frmCashRegister()
            {
                TopLevel = false
            };

            radPanel1.Controls.Clear();
            frm.FormBorderStyle = Alias.FormBorderStyle.None;
            frm.Dock            = DockStyle.Fill;
            radPanel1.Controls.Add(frm);
            frm.Execute();
            dwHome.Show();
        }