public void Cripta_Click(object sender, EventArgs e) { SaveFileDialog sfd = new SaveFileDialog(); sfd.Filter = "File Immagine (*.jpg)|*.jpg"; while (sfd.ShowDialog() != DialogResult.OK) { } string path = System.IO.Path.GetDirectoryName(sfd.FileName); fullPath = sfd.FileName; Bitmap imgCriptata; long longE = Convert.ToInt64(txtCriptaE.Text); long longN = Convert.ToInt64(txtCriptaN.Text); BigInteger bigE = longE; BigInteger bigN = longN; StrnToCript = txtToCript.Text; CriptaDecripta cd1 = new CriptaDecripta(StrnToCript, bigE, bigN); imgCriptata = cd1.CriptaImmagine(imgCrip, fullPath); fullPath = null; }
private void Cripta_Click(object sender, EventArgs e) { Bitmap imgCriptata; SaveFileDialog sfd = new SaveFileDialog(); sfd.Filter = "File Immagine (*.jpg)|*.jpg"; while (sfd.ShowDialog() != DialogResult.OK) { } string path = System.IO.Path.GetDirectoryName(sfd.FileName); _fullPath = sfd.FileName; stringToCript = _txtToCript.Text; CriptaDecripta cd1 = new CriptaDecripta(stringToCript, _eBigI, _nBigI); imgCriptata = cd1.CriptaImmagine(_imgCrip, _fullPath); MessageBox.Show("Informazioni criptate con successo!", "Successo!", MessageBoxButtons.OK, MessageBoxIcon.Information); _fullPath = null; }