Ejemplo n.º 1
0
 void btnCreate_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     var vw = new LocEditView();
     vw.EditMode = Web.Core.Enums.EnViewEditMode.New;
     if (Lanucher.InitView(vw).ShowDialog() == System.Windows.Forms.DialogResult.OK) {
         btnRefresh_ItemClick(null, null);
     }
 }
Ejemplo n.º 2
0
        void btnCreate_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            var vw = new LocEditView();

            vw.EditMode = Web.Core.Enums.EnViewEditMode.New;
            if (Lanucher.InitView(vw).ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                btnRefresh_ItemClick(null, null);
            }
        }
Ejemplo n.º 3
0
        void btnModify_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            var et = gc.GetFocusedDataSource <t_location>();

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

            vw.EditMode = Web.Core.Enums.EnViewEditMode.Edit;
            vw.GuidKey  = et.Guid;
            if (Lanucher.InitView(vw).ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                btnRefresh_ItemClick(null, null);
            }
        }
Ejemplo n.º 4
0
 void btnModify_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     var et = gc.GetFocusedDataSource<t_location>();
     if (et == null)
         return;
     var vw = new LocEditView();
     vw.EditMode = Web.Core.Enums.EnViewEditMode.Edit;
     vw.GuidKey = et.Guid;
     if (Lanucher.InitView(vw).ShowDialog() == System.Windows.Forms.DialogResult.OK) {
         btnRefresh_ItemClick(null, null);
     }
 }