Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.IO; // Mi serve per lo StreamReader
- namespace GraphicInterface_1._0
- {
- public class riconosci_helper
- {
- }
- public static void riconosci_function(bool loadedImage_flag, String selectedDictionary, Bitmap loadedImage)
- {
- //Controllo che l'immagine sia stata caricata e il template selezionato
- if (loadedImage_flag == false)
- {
- MessageBox.Show("Caricare un'immagine.");
- }
- else if (selectedDictionary == "")
- {
- MessageBox.Show("Selezionare dizionario.");
- }
- else
- {
- try
- {
- //Qui mando a Erik l'immagine e il dizionario
- //(loadedImage, selectedDictionary)
- MessageBox.Show("Mandare immagine e dizionario a Erik");
- // Create an instance of StreamReader to read from a file.
- // The using statement also closes the StreamReader.
- using (StreamReader sr = new StreamReader(Constants.fileErik))
- {
- textBox1.Text = sr.ReadToEnd();
- }
- }
- catch (Exception err)
- {
- // Let the user know what went wrong.
- MessageBox.Show("The file could not be read:\n" + err.Message);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement