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

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

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

            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);
            }
        }
Beispiel #4
0
 void btnModify_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     var et = gc.GetFocusedDataSource<t_ware>();
     if (et == null)
         return;
     var vw = new WareEditView();
     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);
     }
 }