Example #1
0
 public void pub_Export()
 {
     using (NuGenImageExportForm imageExportForm = new NuGenImageExportForm())
     {
         int i = 0;
         imageExportForm.ShowDialog(this.uiMenu.Export2Image(PixelFormat.Format24bppRgb, 12, 300, ref i));
     }
 }
Example #2
0
        private void goButton_Click(object sender, EventArgs e)
        {
            NuGenImageExportForm exportForm = new NuGenImageExportForm();

            try
            {
                Image image = Image.FromFile(this.openFileSelector.GetPath);
                exportForm.ShowDialog(image);
            }
            catch (ArgumentException)
            {
                MessageBox.Show("Specify the path.", "Alert", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
            }
            catch (FileNotFoundException)
            {
                MessageBox.Show("Specified file could not be found. Make sure the file exists.", "Alert", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
            }
        }