bug
lu
9 天以前 cf7744e9f271b675181f622f3e16b2fa5e85e7a1
DevApp/Gs.DevApp/UserControl/UcToolBarMenu.cs
@@ -77,8 +77,21 @@
        /// <exception cref="NotImplementedException"></exception>
        private void BtnWeight_ItemClick(object sender, ItemClickEventArgs e)
        {
            var frm = new Frm_Work09();
            frm.Show();
            bool isOpen = false;
            foreach (Form form in Application.OpenForms)
            {
                if (form is Frm_Work09)
                {
                    isOpen = true;
                    form.Activate(); // 激活已存在的窗体
                    break;
                }
            }
            if (!isOpen)
            {
                var form = new Frm_Work09(QcSeason.iqc称重.ToString());
                form.Show();
            }
        }
        /// <summary>
@@ -439,7 +452,7 @@
                lst.Add(btnShouHouFchk.Name);
                lst.Add(btnGongZi.Name);
                lst.Add(btnLianBan.Name);
                lst.Add(btnEsc.Name);
               // lst.Add(btnEsc.Name);
                lst.Add(btnGx.Name);
                _enabledBtn(lst);
                this.currentAction = "esc";
@@ -491,8 +504,9 @@
                    lst.Add(btnOut.Name);
                    lst.Add(btnGongZi.Name);
                    lst.Add(btnLianBan.Name);
                    lst.Add(btnEsc.Name);
                   // lst.Add(btnEsc.Name);
                    lst.Add(btnGx.Name);
                    lst.Add(btnWeight.Name);
                    _enabledBtn(lst);
                }
            }
@@ -517,8 +531,8 @@
            lst.Add(btnHelp.Name);
            lst.Add(btnLayout.Name);
            lst.Add(btnFont.Name);
            lst.Add(btnFont.Name);
            lst.Add(btnLog.Name);
            lst.Add(btnWeight.Name);
            _enabledBtn(lst);
            this.currentAction = "edit";
            if (btnEdtClick != null) btnEdtClick(this, e);
@@ -546,6 +560,7 @@
            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);