private string GenerateHashQuery(string pattern) { HashQuery = StringUtils.CalculateMD5Hash(String.Format("{0}|{1}|{2}", ClientHandler.GetInstance().Login, pattern, "" + DateTime.Now)); return(HashQuery); }
private void btnCerrar_Click(object sender, EventArgs e) { this.Dispose(); ClientHandler.GetInstance().ServerListReceivedEvent -= serverListReceivedDelegate; }
private void BuscarArchivo_FormClosing(object sender, FormClosingEventArgs e) { ClientHandler.GetInstance().ServerListReceivedEvent -= serverListReceivedDelegate; ClientHandler.GetInstance().SearchFilesReceivedEvent -= searchFilesReceivedDelegate; }
private void btnCancelar_Click(object sender, EventArgs e) { ClientHandler.GetInstance().CloseConnection(); this.Dispose(); }