コード例 #1
0
        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();
        }
コード例 #2
0
        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();
        }