private bool Check_Check_Sum(string lib, string licence) { byte checksum = checking.Get_checksum(lib); if (!checking.Check_checksum(checksum, licence)) { string message = "Warning! Library: " + lib + " is not signed or has an inproper sign." + "Do you really want to download this library? (if Yes, it will be signed)"; string caption = "Library isn't signed"; MessageBoxButtons buttons = MessageBoxButtons.YesNo; DialogResult result = MessageBox.Show(message, caption, buttons); if (result == DialogResult.Yes) { assembliesToSign.Add(checksum, licence); return(true); } else { return(false); } } else { assembliesToSign.Add(checksum, licence); return(true); } }