bug
lu
7 天以前 a75a2d05afbd147ecb44fc1b520180424b99c910
DevApp/Gs.DevApp/UserControl/UcToolBarMenu.cs
@@ -62,7 +62,6 @@
            btnGongZi.ItemClick += BtnGongZi_ItemClick;
            btnLianBan.ItemClick += BtnLianBan_ItemClick;
            btnGx.ItemClick += BtnGx_ItemClick;
            btnWeight.ItemClick += BtnWeight_ItemClick;
            btnBaoGao.ItemClick += BtnBaoGao_ItemClick;
            var lst = new List<string>();
            foreach (BarItem item in barManager1.Items)
@@ -74,34 +73,7 @@
        /// <summary>
        /// 启动称重
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        /// <exception cref="NotImplementedException"></exception>
        private void BtnWeight_ItemClick(object sender, ItemClickEventArgs e)
        {
            bool isOpen = false;
            foreach (Form form in Application.OpenForms)
            {
                if (form is WeightIqc)
                {
                    isOpen = true;
                    //form.Activate(); // 激活已存在的窗体
                    //form.MaximizeBox = true;
                    //form.TopMost = true;
                    MsgHelper.ShowInformation("已经打开了,请勿重复打开!");
                    break;
                }
            }
            if (!isOpen)
            {
                var form = new WeightIqc();
                form.Show();
            }
        }
        /// <summary>
        ///     初始化按钮状态
        /// </summary>
@@ -466,7 +438,6 @@
                lst.Add(btnLianBan.Name);
                // lst.Add(btnEsc.Name);
                lst.Add(btnGx.Name);
                lst.Add(btnWeight.Name);
                _enabledBtn(lst);
                this.currentAction = "esc";
                if (btnEscClick != null) btnEscClick(this, e);
@@ -519,7 +490,6 @@
                    lst.Add(btnLianBan.Name);
                    // lst.Add(btnEsc.Name);
                    lst.Add(btnGx.Name);
                    lst.Add(btnWeight.Name);
                    _enabledBtn(lst);
                }
            }
@@ -545,7 +515,6 @@
            lst.Add(btnLayout.Name);
            lst.Add(btnFont.Name);
            lst.Add(btnLog.Name);
            lst.Add(btnWeight.Name);
            _enabledBtn(lst);
            this.currentAction = "edit";
            if (btnEdtClick != null) btnEdtClick(this, e);
@@ -573,7 +542,6 @@
            lst.Add(btnHelp.Name);
            lst.Add(btnLayout.Name);
            lst.Add(btnFont.Name);
            lst.Add(btnWeight.Name);
            _enabledBtn(lst);
            this.currentAction = "add";
            if (btnAddClick != null) btnAddClick(this, e);