void repairBtn_Click(object sender, EventArgs e) { UltraGridRow row = this.comGrid.ActiveRow; if (row != null) { Prod_Pool p = row.ListObject as Prod_Pool; ProdRepairOp prOp = new ProdRepairOp(p,OperationTypeEnum.Add); prOp.Show(); } }
void top_tool_bar_AddClicked(object sender, EventArgs e) { ProdRepairOp AddFrm = new ProdRepairOp(new Prod_Maintain(), OperationTypeEnum.Add); AddFrm.CallBack += new ProdRepairOp.DCallBackHandler(AddFrm_CallBack); AddFrm.Show(); }
void top_tool_bar_EditClicked(object sender, EventArgs e) { UltraGridRow row = this.comGrid.ActiveRow; if (row != null) { Prod_Maintain comp = row.ListObject as Prod_Maintain; ProdRepairOp EditFrm = new ProdRepairOp(comp, OperationTypeEnum.Edit); EditFrm.CallBack += new ProdRepairOp.DCallBackHandler(EditFrm_CallBack); EditFrm.Show(); } }
void repairGrid_DoubleClickRow(object sender, DoubleClickRowEventArgs e) { //UltraGridRow row = e.Row; //Prod_Doc doc = row.ListObject as Prod_Doc; //if (doc != null) //{ // OpenFile(doc.CCF_Directory, doc.PRDQ_CompNo); //} Prod_Maintain row = e.Row.ListObject as Prod_Maintain; ProdRepairOp op = new ProdRepairOp(row, OperationTypeEnum.Edit); op.CallBack += new ProdRepairOp.DCallBackHandler(op_CallBack); op.Show(); }