コード例 #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 = 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);
            }
        }
コード例 #3
0
ファイル: MainView.cs プロジェクト: ZixiangBoy/YongERP
 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);
     }
 }
コード例 #4
0
ファイル: MainView.cs プロジェクト: ZixiangBoy/YongERP
 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);
     }
 }