Exemplo n.º 1
0
 private void sizeToolStripMenuItem_Click(object sender, EventArgs e)
 {
     using (SizeDialog dlg = new SizeDialog())
     {
         dlg.Value = imageSize;
         if (dlg.ShowDialog(this) == DialogResult.OK)
         {
             imageSize = dlg.Value;
             updateStatus();
             try
             {
                 loadImage(loadedImagePath);
             }
             catch (Exception ex)
             {
                 handleUncaughtException(ex);
             }
         }
     }
 }
Exemplo n.º 2
0
 private void sizeToolStripMenuItem_Click(object sender, EventArgs e)
 {
     using (SizeDialog dlg = new SizeDialog())
     {
         dlg.Value = imageSize;
         if (dlg.ShowDialog(this) == DialogResult.OK)
         {
             imageSize = dlg.Value;
             updateStatus();
             try
             {
                 loadImage(loadedImagePath);
             }
             catch (Exception ex)
             {
                 handleUncaughtException(ex);
             }
         }
     }
 }