Beispiel #1
0
        //Setting按鈕事件
        private void SettingButton_Click(object sender, EventArgs e)
        {
            SettingWindows settingwindows = new SettingWindows(target_list);
            int            is_ok          = settingwindows.ShowDialog().GetHashCode();

            if (is_ok == 1)
            {
                go_tcp.GoDisConnact();
                go_tcp.GoSetIpPort(target_list.GoGetStringArray());
                go_tcp.GoConnact();
            }
        }
Beispiel #2
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();
            }
        }
Beispiel #3
0
 //更新IpPortListBox
 private void UpdateList()
 {
     IpPortListBox.Items.Clear();
     IpPortListBox.Items.AddRange(target_list.GoGetStringArray());
     IpPortListBox.Refresh();
 }