Esempio n. 1
0
 /// <summary>
 /// 添加盘点单
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void btnAdd_Press(object sender, EventArgs e)
 {
     try
     {
         frmAssInventoryCreate assInventoryCreate = new frmAssInventoryCreate();
         Show(assInventoryCreate, (MobileForm sender1, object args) =>
         {
             if (assInventoryCreate.ShowResult == ShowResult.Yes)
             {
                 Bind();
             }
         });
     }
     catch (Exception ex)
     {
         Toast(ex.Message);
     }
 }
Esempio n. 2
0
        //按ActionButton时触发
        private void frmAssInventory_ActionButtonPress(object sender, ActionButtonPressEventArgs e)
        {
            switch (e.Index)
            {
            case 0:
                frmAssInventoryCreate assInventoryCreate = new frmAssInventoryCreate();
                Show(assInventoryCreate, (MobileForm sender1, object args) =>
                {
                    if (assInventoryCreate.ShowResult == ShowResult.Yes)
                    {
                        Bind();
                    }
                });

                break;

            default:
                break;
            }
        }