private void bbi_New_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            frmSimleCurrentDefinition frm = new frmSimleCurrentDefinition();

            frm._FormOpenType = Infrastructure.FormOpenType.New;
            frm.ShowDialog();
        }
        private void bbi_Edit_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            var oRow = (SimleCurrentDefinitionDTO)gcv_Current.GetFocusedRow();

            if (oRow != null)
            {
                frmSimleCurrentDefinition frm = new frmSimleCurrentDefinition();
                frm._FormOpenType = Infrastructure.FormOpenType.Edit;
                frm.RecId         = oRow.RecId;
                frm.ShowDialog();
            }
        }
Ejemplo n.º 3
0
 private void lc_CariKodu_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
 {
     if (e.Button.Index == 1)
     {
         try
         {
             frmSimleCurrentDefinition frm = new frmSimleCurrentDefinition();
             frm.ShowDialog();
         }
         catch (Exception ex)
         {
         }
         finally
         {
             do_refresh_Current();
         }
     }
 }