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