Beispiel #1
0
 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();
     }
 }
Beispiel #2
0
 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();
 }
Beispiel #3
0
        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();
            }
        }