Example #1
0
        /// <summary>
        /// 盘点单编辑
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void ibEdit_Press(object sender, EventArgs e)
        {
            frmConInventoryEdit edit = new frmConInventoryEdit {
                IID = lblName.BindDataValue.ToString()
            };

            Form.Show(edit, (MobileForm sender1, object args) =>
            {
                if (edit.ShowResult == ShowResult.Yes)
                {
                    ((frmConInventory)Form).Bind();
                }
            });
        }
Example #2
0
 private AutofacConfig _autofacConfig = new AutofacConfig();//调用配置类
 /// <summary>
 /// 编辑盘点单
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void btnEdit_Press(object sender, EventArgs e)
 {
     try
     {
         frmConInventoryEdit edit = new frmConInventoryEdit {
             IID = lblName.BindDataValue.ToString()
         };
         Form.Show(edit, (MobileForm sender1, object args) =>
         {
             if (edit.ShowResult == ShowResult.Yes)
             {
                 ((frmConInventory)Form).Bind();
             }
         });
     }
     catch (Exception ex)
     {
         Form.Toast(ex.Message);
     }
 }