private void btnExtract_Click(object sender, EventArgs e) { textBox2.Text = ""; try { textBox2.Text = SteganoLIB.ExtractText(bmpExtractImage); } catch (Exception ex) { MessageBox.Show("Error while extracting message, or no message is hidden"); } }
private void button1_Click(object sender, EventArgs e) { if (!String.IsNullOrEmpty(textBox1.Text.Trim())) { txtMessage = textBox1.Text; bmpImageResult = SteganoLIB.HideText(bmpImageSource, txtMessage); pbResultImage.Image = bmpImageResult; btnSave.Enabled = true; } else { MessageBox.Show("Message text is empty"); } }