Beispiel #1
0
 void top_tool_bar_AddClicked(object sender, EventArgs e)
 {
     OtherCompOp frmAdd = new OtherCompOp(new Prod_Components(), OperationTypeEnum.Add);
     frmAdd.CallBack += new OtherCompOp.DCallBackHandler(frmAdd_CallBack);
     frmAdd.Show();
 }
Beispiel #2
0
 void top_tool_bar_LookClicked(object sender, EventArgs e)
 {
     UltraGridRow row = this.comGrid.ActiveRow;
     if (row != null)
     {
         Prod_Components comp = row.ListObject as Prod_Components;
         OtherCompOp EditFrm = new OtherCompOp(comp, OperationTypeEnum.Look);
         //EditFrm.CallBack += new CompMange.DCallBackHandler(EditFrm_CallBack);
         EditFrm.Show();
     }
 }
Beispiel #3
0
 void top_tool_bar_LookClicked(object sender, EventArgs e)
 {
     UltraGridRow row = this.comGrid.ActiveRow;
     if (row != null)
     {
         string code = row.Cells["PRDC_CompNo"].Value.ToString();
         var model=compInstance.GetComponentModel(code);
         OtherCompOp frmOp = new OtherCompOp(model, OperationTypeEnum.Look);
         frmOp.ShowDialog();
     }
 }