Exemplo n.º 1
0
 public SettingWindows(GO_TARGET_LIST _target_list)
 {
     InitializeComponent();
     proto_list  = _target_list;
     target_list = _target_list.GoClone();
     UpdateList();
 }
Exemplo n.º 2
0
        /// <summary>
        /// 深複製GO_TARGET_LIST物件
        /// </summary>
        /// <returns>GO_TARGET_LIST物件</returns>
        public GO_TARGET_LIST GoClone()
        {
            GO_TARGET_LIST clone_list = new GO_TARGET_LIST();

            foreach (GO_IP_PORT _ip_port in _ip_port_list)
            {
                clone_list.GoAdd(_ip_port.ip, _ip_port.port);
            }
            return(clone_list);
        }
Exemplo n.º 3
0
        private void Init()
        {
            MessageBoard.Clear();               //TODO 取得設定值
            target_list = new GO_TARGET_LIST(); //TODO 取得設定值

            //開啟伺服器聆聽
            go_tcp = new GO_TCP();
            go_tcp.GoOpenServer(11010); //TODO Port參數
            if (target_list.GoCount() > 0)
            {
                go_tcp.GoSetIpPort(target_list.GoGetStringArray());
                go_tcp.GoConnact();
            }
        }
Exemplo n.º 4
0
 /// <summary>
 /// 將List賦蓋目前物件
 /// </summary>
 /// <param name="_list">GO_TARGET_LIST 實例</param>
 public void GoSetList(GO_TARGET_LIST _list)
 {
     _ip_port_list = _list._ip_port_list;
 }