Example #1
0
        private void btnPDF_Click(object sender, EventArgs e)
        {
            DialogResult dialogResult = MessageBox.Show("This feature isn't stable. I recommend using some other dedicated tool to do this. If you really want to continue, please read the license again. Press OK to continue", "Sure?", MessageBoxButtons.OKCancel);

            if (dialogResult == DialogResult.Cancel)
            {
                return;
            }
            else
            {
                License l = new License();
                l.ShowDialog();
                MessageBox.Show("Atleast restart your computer to clear out orphaned processes once you are done.");
            }

            String saveLocation = saveLoc.Text;

            if (saveLocation == "" || !Directory.Exists(saveLocation + "\\download"))
            {
                MessageBox.Show("Choose a directory that contains the download folder.");
                return;
            }

            ToPDF toPDF = new ToPDF(saveLocation);

            toPDF.ShowDialog();
        }
Example #2
0
 public ToPDF(string saveLocation)
 {
     InitializeComponent();
     this.saveLocation = saveLocation;
     _instance         = this;
 }