public static ClientSocketManage getInstance() { if (_instance == null) { _instance = new ClientSocketManage(); } return(_instance); }
public static ClientSocketManage getInstance() { if(_instance == null) { _instance = new ClientSocketManage(); } return _instance; }
public Client() { InitializeComponent(); mysocketManage = ClientSocketManage.getInstance(); clientSocket = mysocketManage.getSocket(); _mysendFactory = new MySendFactory(clientSocket); isRunning = true; _listenFromServer = new Thread(listenFromServer); _listenFromServer.Start(); }
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 = '*'; }