Ejemplo n.º 1
0
 public void onRobots_WorkInfo_InitSet()
 {
     try
     {
         Data.Instance.Robot_work_info.Clear();
         //foreach (KeyValuePair<string, string> info in Data.Instance.Robot_status_info)
         int cnt = 0;
         cnt = Data.Instance.Robot_RegInfo_list.Count;
         if (cnt > 0)
         {
             foreach (KeyValuePair <string, Robot_RegInfo> info in Data.Instance.Robot_RegInfo_list)
             {
                 string        strrobotid = info.Key;
                 Robot_RegInfo value      = info.Value;
                 Invoke(new MethodInvoker(delegate()
                 {
                     textBox2.AppendText(strrobotid + " Work info check finish...\r\n");
                 }));
                 Data.Instance.Robot_work_info.Add(strrobotid, commBridge.onNewRobotWorkInfo_initial(strrobotid, "", 1, 0, "", ""));
             }
         }
     }
     catch (Exception ex)
     {
         Console.Out.WriteLine("onRobots_WorkInfo_InitSet err :={0}", ex.Message.ToString());
     }
 }
Ejemplo n.º 2
0
        /// <summary>
        /// 등록된 로봇의 워크 정보를 초기화 한다.
        /// </summary>
        public void onRobots_WorkInfo_InitSet()
        {
            try
            {
                Data.Instance.Robot_work_info.Clear();
                //foreach (KeyValuePair<string, string> info in Data.Instance.Robot_status_info)
                int cnt = 0;
                cnt = Data.Instance.Robot_RegInfo_list.Count;
                if (cnt > 0)
                {
                    foreach (KeyValuePair <string, Robot_RegInfo> info in Data.Instance.Robot_RegInfo_list)
                    {
                        string        strrobotid = info.Key;
                        Robot_RegInfo value      = info.Value;

                        Data.Instance.Robot_work_info.Add(strrobotid, commBridge.onNewRobotWorkInfo_initial(strrobotid, "", 1, 0, "", ""));
                    }
                }
            }
            catch (Exception ex)
            {
                Console.Out.WriteLine("onRobots_WorkInfo_InitSet err :={0}", ex.Message.ToString());
            }
        }