| | |
| | | using System; |
| | | using DevExpress.XtraBars; |
| | | using DevExpress.XtraBars.FluentDesignSystem; |
| | | using DevExpress.XtraBars.Navigation; |
| | | using DevExpress.XtraTab; |
| | | using DevExpress.XtraTab.ViewInfo; |
| | | using Gs.DevApp.DevFrm.User; |
| | | using Gs.DevApp.Entity; |
| | | using Gs.DevApp.ToolBox; |
| | | using Newtonsoft.Json; |
| | | using Newtonsoft.Json.Linq; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.ComponentModel; |
| | | using System.Configuration; |
| | |
| | | using System.Drawing; |
| | | using System.Reflection; |
| | | using System.Windows.Forms; |
| | | using DevExpress.XtraBars; |
| | | using DevExpress.XtraBars.FluentDesignSystem; |
| | | using DevExpress.XtraBars.Navigation; |
| | | using DevExpress.XtraTab; |
| | | using DevExpress.XtraTab.ViewInfo; |
| | | using Gs.DevApp.DevFrm.Sys; |
| | | using Gs.DevApp.DevFrm.User; |
| | | using Gs.DevApp.Entity; |
| | | using Gs.DevApp.ToolBox; |
| | | using Newtonsoft.Json; |
| | | using Newtonsoft.Json.Linq; |
| | | |
| | | namespace Gs.DevApp.DevFrm |
| | | { |
| | |
| | | MsgHelper.Warning("提示:" + ex.Message); |
| | | } |
| | | }; |
| | | barMenu.ItemClick += (s, e) => |
| | | { |
| | | Gs.DevApp.DevFrm.User.SysMenu frm = new SysMenu(); |
| | | frm.ShowDialog(); |
| | | }; |
| | | // tab.ContextMenuStrip = cms1; |
| | | } |
| | | |
| | | private void Tab_MouseDown(object sender, MouseEventArgs e) |
| | | { |
| | | if (e.Button == MouseButtons.Right) |
| | | { |
| | | tab.ContextMenuStrip = null; |
| | | //TreeListHitInfo hInfo = treeList1.CalcHitInfo(new Point(e.X, e.Y)); |
| | | //TreeListNode node = hInfo.Node; |
| | | //treeList1.FocusedNode = node; |
| | | tab.ContextMenuStrip = cms1; |
| | | cms1.Show(tab, e.Location); |
| | | } |
| | | } |
| | | |
| | | private void BarEasy_ItemClick(object sender, ItemClickEventArgs e) |
| | | { |
| | | var frm = new EasyCode(); |
| | | frm.ShowDialog(); |
| | | //var frm = new EasyCode(); |
| | | //frm.ShowDialog(); |
| | | } |
| | | |
| | | private void FrmMain_FormClosing(object sender, FormClosingEventArgs e) |
| | |
| | | { |
| | | var strJson = UtilityHelper.HttpPost("", |
| | | "User/GetUserLoginInfo", JsonConvert.SerializeObject(_obj)); |
| | | DevExpress.Utils.WaitDialogForm wdf = new DevExpress.Utils.WaitDialogForm("拼命加载中,请稍后......", "友情提示"); |
| | | Size _size; string _caption; Color _color; Padding _pad; |
| | | (_size, _caption, _color, _pad) = Gs.DevApp.ToolBox.UtilityHelper.getLoading(); |
| | | DevExpress.Utils.WaitDialogForm wdf = new DevExpress.Utils.WaitDialogForm("加载进度:", _caption, _size); |
| | | wdf.BackColor = _color; |
| | | wdf.Padding = _pad; |
| | | var _job = JObject.Parse(strJson); |
| | | var rtnCode = _job["rtnCode"].ToString(); |
| | | if (int.Parse(rtnCode) > 0) |
| | |
| | | foreach (var _dy2 in drItem) |
| | | { |
| | | var _itm = acrd.AddItem(); |
| | | _itm.Appearance.Hovered.Options.UseFont = true; |
| | | _itm.Appearance.Normal.Options.UseFont = true; |
| | | _itm.ImageOptions.Image = |
| | | UtilityHelper.GetImgFromResource( |
| | | _dy2["icon"].ToString(), 2); |
| | |
| | | _itm.Style = ElementStyle.Item; |
| | | _itm.Text = _dy2["name"].ToString(); |
| | | wdf.SetCaption("加载进度:" + _dy2["name"].ToString()); |
| | | _itm.Appearance.Normal.Font = |
| | | new Font("Tahoma", 10F); |
| | | _itm.Tag = _dy2["formPath"].ToString(); //存路径,类名 |
| | | _itm.Click += _grp_Click; |
| | | _grp.Elements.Add(_itm); |