void tbGrid_EditClicked(object sender, EventArgs e) { UltraGridRow row = this.comGrid.ActiveRow; if (row != null) { Prod_Pool comp = row.ListObject as Prod_Pool; ProdIO EditFrm = new ProdIO(comp, OperationTypeEnum.Edit); EditFrm.CallBack += new ProdIO.DCallBackHandler(EditFrm_CallBack); EditFrm.Show(); } }
void top_tool_bar_AddClicked(object sender, EventArgs e) { ProdIO AddFrm = new ProdIO(new Prod_Pool(), OperationTypeEnum.Add); AddFrm.CallBack += new ProdIO.DCallBackHandler(AddFrm_CallBack); AddFrm.Show(); //CompOp frmAdd = new CompOp(new Tpl_Components(), OperationTypeEnum.Add); //frmAdd.CallBack += new CompOp.DCallBackHandler(frmAdd_CallBack); //frmAdd.Show(); }
void tbGrid_LookClicked(object sender, EventArgs e) { UltraGridRow row = this.comGrid.ActiveRow; if (row != null) { Prod_Pool comp = row.ListObject as Prod_Pool; ProdIO EditFrm = new ProdIO(comp, OperationTypeEnum.Look); EditFrm.Show(); } }