示例#1
0
        void btnCreate_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            var vw = new AreaEditView();

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

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

            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);
            }
        }
示例#3
0
 void btnCreate_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     var vw = new AreaEditView();
     vw.EditMode = Web.Core.Enums.EnViewEditMode.New;
     if (Lanucher.InitView(vw).ShowDialog() == System.Windows.Forms.DialogResult.OK) {
         btnRefresh_ItemClick(null, null);
     }
 }
示例#4
0
 void btnModify_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     var et = gc.GetFocusedDataSource<t_area>();
     if (et == null)
         return;
     var vw = new AreaEditView();
     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);
     }
 }