Exemplo n.º 1
0
 private void buttonEdit_Click(object sender, EventArgs e)
 {
     if (GlobalDataAccessor.Instance.DesktopSession.HistorySession.Trigger != null &&
         GlobalDataAccessor.Instance.DesktopSession.HistorySession.Trigger.Equals(Commons.TriggerTypes.SHOPCASHMANAGEMENT, StringComparison.OrdinalIgnoreCase))
     {
         this.NavControlBox.IsCustom     = true;
         this.NavControlBox.CustomDetail = "EditCashDrawer";
         this.NavControlBox.Action       = NavBox.NavAction.BACKANDSUBMIT;
     }
     else
     {
         AddCashDrawer addCashDrawerFrm = new AddCashDrawer();
         addCashDrawerFrm.ShowDialog(this);
     }
 }
Exemplo n.º 2
0
 private void buttonAddDrawer_Click(object sender, EventArgs e)
 {
     if (GlobalDataAccessor.Instance.DesktopSession.HistorySession.Trigger != null &&
         GlobalDataAccessor.Instance.DesktopSession.HistorySession.Trigger.Equals(Commons.TriggerTypes.SHOPCASHMANAGEMENT, StringComparison.OrdinalIgnoreCase))
     {
         this.NavControlBox.IsCustom     = true;
         this.NavControlBox.CustomDetail = "AddCashDrawer";
         this.NavControlBox.Action       = NavBox.NavAction.BACKANDSUBMIT;
     }
     else
     {
         var addCashDrawerFrm = new AddCashDrawer();
         addCashDrawerFrm.ShowDialog(this);
         //Make call stored proc to get current data
         this.retrieveCashDrawerDetails();
         loadDataIntoForm();
     }
 }