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); }