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

            vw.EditMode = Ultra.Web.Core.Enums.EnViewEditMode.New;
            Lanucher.InitView(vw);
            if (vw.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                barBtnRefresh_ItemClick(sender, e);
            }
        }
Esempio n. 2
0
        void barBtnEdt_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            var et = gridControlEx1.GetFocusedDataSource <t_role>();

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

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