コード例 #1
0
ファイル: BatchView.cs プロジェクト: digwitcheng/inSight
 string Changed(CommandType type, string value)
 {
     isChanged = true;
     if (monitorView.Data == null)
     {
         MessageBox.Show("相机未连接!或当前连接的相机ip不在当前选择的物料编号之中");
         return("未连接");
     }
     monitorView.Data.SetValue(type, value);
     return(monitorView.Set(type, value));
 }
コード例 #2
0
        void Changed(CommandType type, string value, Label showLabel)
        {
            isChanged = true;
            if (monitorView.Data == null)
            {
                MessageBox.Show("相机未连接!或当前连接的相机ip不在当前选择的物料编号之中");
                showLabel.Text = "未连接";
            }
            monitorView.Data.SetValue(type, value);
            string res = "";

            res = monitorView.Set(type, value);
            if (res.Equals("1"))
            {
                showLabel.Text = monitorView.Get(type);
            }
        }