예제 #1
0
 private void btn_Login_Click(object sender, EventArgs e)
 {
     btn_Login.Enabled = false;
     Tefreeca_client_interface.Add_Command(Command_Client.Make_Login, new i_Make_Login(tbx_ID.Text, tbx_PW.Text)); //로그인 시도.
     UI.set_listBox_delegate(listBox_state_log, new string[] { client_message.로그인_시도중.ToString().Replace("_", " ") }, Option_listBox.add);
     Console.WriteLine("Login..");
 }
예제 #2
0
        private void btn_connect_Click(object sender, EventArgs e)
        {
            if (mode == btn_mode.connect)
            {
                //주소길이 검사,
                if (tbx_BJID.Text.Trim().Length < 3)
                {
                    UI.set_listBox_delegate(listBox_state_log, new string[] { "BJ ID가 너무 짧습니다." }, Option_listBox.add);
                    return;
                }
                i_Make_Connect make_connect = new i_Make_Connect("http://play.afreecatv.com/" + tbx_BJID.Text.Trim(), Set_MaxConnect);

                Tefreeca_client_interface.Add_Command(Command_Client.Make_Connect, make_connect); //연결을 만든다.
                tbx_BJID.Enabled = false;
            }
            else if (mode == btn_mode.disconnect)
            {
                UI.set_button_delegate(btn_connect, false, Option_button.enable); //버튼 비활성화.
                Tefreeca_client_interface.Add_Command(Command_Client.Close_Order, null);
            }
        }
예제 #3
0
 private void btn_set_Maxconnect_Click(object sender, EventArgs e)
 {
     Tefreeca_client_interface.Add_Command(Command_Client.Make_Order_Set_MaxConnect, int.Parse(numericUpDown_MaxConnect.Value.ToString()));
     UI.set_listBox_delegate(listBox_state_log, new string[] { "최대 연결 수 변경 요청" }, Option_listBox.add);
 }