void IConnection.Connect(ref connessione.Server server) { serverInConnessione.TryAdd(server); if (!connectServerWorker.IsBusy) { connectServerWorker.RunWorkerAsync(); } }
public bool Equals(Server s) { if (s == null) { return false; } return Name.Equals(s.Name) && IP.Equals(s.IP) && ControlPort == s.ControlPort; }