Ejemplo n.º 1
0
        void barBtnNew_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            var vw = new NewView();

            Lanucher.InitView(vw);
            vw.EditMode = Ultra.Web.Core.Enums.EnViewEditMode.New;
            if (vw.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                barBtnRefresh_ItemClick(sender, e);
            }
        }
Ejemplo n.º 2
0
        private void gridControlEx1_RowCellDoubleClick(object sender, MouseEventArgs e)
        {
            var et = gridControlEx1.GetFocusedDataSource <t_member>();

            if (null == et)
            {
                return;
            }
            var vw = new NewView();

            Lanucher.InitView(vw);
            vw.EditMode = Ultra.Web.Core.Enums.EnViewEditMode.Edit;
            vw.GuidKey  = et.Guid;
            if (vw.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                barBtnRefresh_ItemClick(sender, null);
            }
        }
Ejemplo n.º 3
0
 void barBtnNew_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     var vw = new NewView();
     Lanucher.InitView(vw);
     vw.EditMode = Ultra.Web.Core.Enums.EnViewEditMode.New;
     if (vw.ShowDialog() == System.Windows.Forms.DialogResult.OK)
     {
         barBtnRefresh_ItemClick(sender, e);
     }
 }
Ejemplo n.º 4
0
 private void gridControlEx1_RowCellDoubleClick(object sender, MouseEventArgs e)
 {
     var et = gridControlEx1.GetFocusedDataSource<t_member>();
     if (null == et) return;
     var vw = new NewView();
     Lanucher.InitView(vw);
     vw.EditMode = Ultra.Web.Core.Enums.EnViewEditMode.Edit;
     vw.GuidKey = et.Guid;
     if (vw.ShowDialog() == System.Windows.Forms.DialogResult.OK) {
         barBtnRefresh_ItemClick(sender, null);
     }
 }