Exemple #1
0
 private void buttonTonsCinza_Click(object sender, EventArgs e)
 {
     try
     {
         if (imagemLoad != null)
         {
             TonsCinza     tonsCinza     = new TonsCinza(imagemLoad);
             FormTonsCinza formTonsCinza = new FormTonsCinza(tonsCinza);
             formTonsCinza.Show();
         }
         else
         {
             throw new FileLoadException();
         }
     }
     catch (Exception exception)
     {
         Console.WriteLine(exception.Message);
     }
 }
 public FormTonsCinza(TonsCinza tonsCinza)
 {
     _tonsCinza = tonsCinza;
     InitializeComponent();
     Load();
 }