예제 #1
0
        private void button_g5_Click_1(object sender, EventArgs e)
        {
            FileDialog dlg = new OpenFileDialog();

            dlg.DefaultExt = ".pdf";
            dlg.Filter     = "PDF Files (*.pdf) | *.pdf";

            dlg.ShowDialog();
            bool fileExists = dlg.CheckFileExists;

            if (fileExists)
            {
                FileInfo file = new FileInfo(dlg.FileName);
                //sets up a single pathSet object
                string arpath = textBox1.Text + "\\Grade 5";
                //Console.WriteLine("arabic path is: " + arpath);
                string outpath = arpath + "\\merged";

                //pathset newpath = new pathset(file, arpath, outpath);
                //filer[0] = new pathset(file, arpath, outpath);
                setstatus(dlg.FileName);
                button_g5.BackColor = System.Drawing.Color.Green;
                button_g5.ForeColor = System.Drawing.Color.White;

                Merger m = new Merger(file, arpath, outpath);
            }

            /* //sets up a single pathSet object
             * string arpath = textBox1.Text + "\\Grade 5";
             * //Console.WriteLine("arabic path is: " + arpath);
             * string outpath = arpath + "\\merged";
             * FileInfo file = open_file();
             * filer[4] = new pathset(file, arpath, outpath);
             * setstatus(file.FullName);
             * button_g5.BackColor = System.Drawing.Color.Green;
             * button_g5.ForeColor = System.Drawing.Color.White;*/
        }