Exemplo n.º 1
0
        /// <summary>
        /// Globals the setting_ add endoscope automatic queue event.
        /// </summary>
        /// <param name="endoscope">The endoscope.</param>
        private void GlobalSetting_AddEndoscopeToQueueEvent(EndoscopeState endoscope)
        {
            Action action = delegate()
            {
                var ListItem = new KryptonListItem();
                ListItem.Tag = endoscope.txtEndoscopeID.Text;
                ListItem.Image = ProxyClient.Properties.Resources.ok;
                ListItem.ShortText = "内镜" + endoscope.txtEndoscopeID.Text + "等待确认";
                ListItem.LongText = "清洗员编号:" + endoscope.txtWasherSN.Text;

                if (!string.IsNullOrEmpty(endoscope.EndoscopeCleanStandarData))
                {
                    ListItem.LongText += " 清洗不合格信息:[" + endoscope.EndoscopeCleanStandarData + "]";
                    ListItem.Image = ProxyClient.Properties.Resources.no;
                }

                this.sureList.Items.Add(ListItem);
            };

            // 添加队列
            this.sureList.Invoke(action);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Globals the setting_ remove cleaned endoscope event.
        /// </summary>
        /// <param name="state">The state.</param>
        private void GlobalSetting_RemoveCleanedEndoscopeEvent(EndoscopeState state)
        {
            Action action = delegate()
            {

                this.flowLayoutUserControl.Controls.Remove(state);
                string temp = "内镜";

                foreach (EndoscopeState es in flowLayoutUserControl.Controls)
                {
                    temp += es.txtEndoscopeID.Text + ",";
                }

                if (temp.Trim(',').Length > 2)
                {
                    this.labTips.Text = temp.Trim(',') + "正在清洗";
                }
                else
                {
                    this.labTips.Text = "欢迎使用迈尔内镜清洗工作站";
                }
            };

            this.Invoke(action);
        }