public P2PConnectionsManager(UserModel user, NSConnection nsConnection) { _user = user; _nsConnection = nsConnection; _nsConnection.ObjectReceivedEvent += NsConnectionOnObjectReceivedEvent; ConnectionClosedEvent += OnConnectionClosedEvent; _superPeerEndPoint = new IPEndPoint(IPAddress.Parse(SuperPeerConfig.Url), SuperPeerConfig.Port); }
public ClientForm(UserModel user) { InitializeComponent(); _user = user; _conversations = _user.Friends.ToDictionary(f => f.Id, f => new Conversation() { UserId = f.Id, Input = string.Empty, TextArea = string.Empty }); PopulateFriends(); connectProgressBar.Hide(); connectProgressBar.Value = 0; }
public NSConnection(UserModel user) { _user = user; }