private void hashAnaliseButton_Click(object sender, EventArgs e) { var splashScreen = new SplashScreen(); splashScreen.Show(); splashScreen.Update(); HashWorker hashWorker; _g1 = new Graphic(tempBitmapHash1, graphHash1, hash1box); _g2 = new Graphic(tempBitmapHash2, graphHash2, hash2box); for (var i = 0; i < Data.PacketCountArray.Length; i++) { hashWorker = new HashWorker(Data.PacketCountArray[i] , Data.FullItemCount / Data.PacketCountArray[i] + (Data.FullItemCount % Data.PacketCountArray[i] > 0 ? 1 : 0) , Data.GeneratedArray , Data.KoefArray[i]); hashWorker.RepresentMiddle(); hashWorker.SaveMiddle(); //Console.WriteLine("{0} => {1}", Data.packetCountArray[i], hashWorker.GetStat()); _g1.DrawNewStat(i, hashWorker.GetStatMid()); hash1box.Update(); Refresh(); } for (var i = 0; i < Data.PacketCountArray.Length; i++) { hashWorker = new HashWorker(Data.PacketCountArray[i] , Data.FullItemCount / Data.PacketCountArray[i] + (Data.FullItemCount % Data.PacketCountArray[i] > 0 ? 1 : 0) , Data.GeneratedArray , Data.KoefArray[i]); hashWorker.RepresentNotation(); hashWorker.SaveNotation(); //Console.WriteLine("{0} => {1}", Data.packetCountArray[i], hashWorker.GetStat()); _g2.DrawNewStat(i, hashWorker.GetStatNot()); hash2box.Update(); Refresh(); } MessageBox.Show(@"Анализ хеширования успешно завершен", @"Успех", MessageBoxButtons.OK, MessageBoxIcon.Information); splashScreen.Close(); }