private void prinImagesMenuItem_Click(object sender, EventArgs e) { OpenFileDialog dlg = new OpenFileDialog(); dlg.DefaultExt = "png"; dlg.Filter = "Image File|*.png"; if (dlg.ShowDialog() != System.Windows.Forms.DialogResult.OK) { return; } frmBatch frm = new frmBatch(); frm.pngFile = dlg.FileName; frm.ShowDialog(); }
private void batchProcessMenuItem_Click(object sender, EventArgs e) { imageFilePath = ""; OpenFileDialog dlg = new OpenFileDialog(); dlg.DefaultExt = "ini"; dlg.Filter = "Batch Configuration|*.ini"; if (dlg.ShowDialog() != System.Windows.Forms.DialogResult.OK) { return; } frmBatch frm = new frmBatch(); frm.iniFile = dlg.FileName; frm.ShowDialog(); }