Example #1
0
 /// <summary>
 /// 客户新增
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void frmCustomer_ActionButtonPress(object sender, ActionButtonPressEventArgs e)
 {
     switch (e.Index)
     {
     case 0:
         frmCustomerCreate frmCustomerCreate = new frmCustomerCreate();
         frmCustomerCreate.unitType = unitType;
         Show(frmCustomerCreate, (MobileForm sender1, object args) =>
         {
             if (frmCustomerCreate.ShowResult == ShowResult.Yes)
             {
                 Bind();        //新增客户完毕,刷新当前界面
             }
         });
         break;
     }
 }
Example #2
0
        /// <summary>
        /// 客户/供货商编辑
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnEdit_Press(object sender, EventArgs e)
        {
            frmCustomerCreate frmCustomerCreate = new frmCustomerCreate();

            frmCustomerCreate.unitType = unitType;
            switch (unitType)
            {
            case UnitType.客户:
                frmCustomerCreate.cusId = cusId;
                break;

            case UnitType.供应商:
                frmCustomerCreate.vId = vId;
                break;
            }
            Show(frmCustomerCreate, (MobileForm sender1, Object args) => {
                if (frmCustomerCreate.ShowResult == ShowResult.Yes)
                {
                    Bind();
                }
            });
        }