Пример #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);
            }
        }
Пример #2
0
        private void gridControlEx1_RowCellDoubleClick(object sender, MouseEventArgs e)
        {
            var et = gcUnSub.GetFocusedDataSource <t_trade>();

            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);
            }
        }
Пример #3
0
 private void gridControlEx1_RowCellDoubleClick(object sender, MouseEventArgs e)
 {
     var et = gcUnSub.GetFocusedDataSource<t_trade>();
     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);
 }
Пример #4
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);
     }
 }