private void simpleButton1_Click(object sender, EventArgs e)
        {
            ProductTypeAddView view  = new ProductTypeAddView();
            CloseFormHandle    close = new CloseFormHandle(delegate() {
                //GetProductIndentList();
                this.Invoke(new RefreshUIHandle(delegate {
                    SystemManageNetOperation.ProductTypeInfo(ProductTypeInfoResult);
                }));
            });

            ToolsManage.ShowForm(view, false, close);
        }
        //按钮列的点击事件
        public void ColumnButtonClick(object sender, ButtonPressedEventArgs e)
        {
            int     rowhandle = this.gridView1.FocusedRowHandle;
            DataRow row       = this.gridView1.GetDataRow(rowhandle);

            ProductTypeAddView view  = new ProductTypeAddView(items[rowhandle]);
            CloseFormHandle    close = new CloseFormHandle(delegate() {
                this.Invoke(new RefreshUIHandle(delegate {
                    SystemManageNetOperation.ProductTypeInfo(ProductTypeInfoResult);
                }));
            });

            ToolsManage.ShowForm(view, false, close);
        }
        private void DeleteProductTypeResult(ResultModel result)
        {
            System.Console.WriteLine("DeleteProductTypeInfoResult:" + result.pack);
            if (result.pack.Content.MessageType != 1)
            {
                return;
            }

            if (result.pack.Cmd == Cmd.CMD_SYS_DEL)
            {
                NetMessageManage.RemoveResultBlock(DeleteProductTypeResult);
                this.Invoke(new RefreshUIHandle(delegate {
                    SystemManageNetOperation.ProductTypeInfo(ProductTypeInfoResult);
                }));
            }
        }
Exemple #4
0
 //获取商品类别列表
 private void GetProductTypes()
 {
     SystemManageNetOperation.ProductTypeInfo(ProductTypeInfoResult);
 }
 private void ProductTypeManageView_Load(object sender, EventArgs e)
 {
     SystemManageNetOperation.ProductTypeInfo(ProductTypeInfoResult);
 }