示例#1
0
        public Client()
        {
            InitializeComponent();
            mysocketManage = ClientSocketManage.getInstance();
            clientSocket = mysocketManage.getSocket();
            _mysendFactory = new MySendFactory(clientSocket);

            isRunning = true;

            _listenFromServer = new Thread(listenFromServer);
            _listenFromServer.Start();
        }
示例#2
0
        public Login()
        {
            InitializeComponent();

            _socketMange = ClientSocketManage.getInstance();
            clientSocket = _socketMange.getSocket();
            _mysendFactory = new MySendFactory(clientSocket);

            tbIpServer.Text = "127.0.0.1";
            tbName.Text = "Name 1";
            tbPassword.Text = "";
            tbPassword.PasswordChar = '*';
        }