예제 #1
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            var p = fileDialog;

            p.ShowDialog();
            var x = p.FileNames;

            foreach (var item in from item in x let extensao = System.IO.Path.GetExtension(item) where !String.IsNullOrEmpty(item) && extensao == ".pdf" select item)
            {
                lstLista.Items.Add(item);
                RunBarry.AddFile(item);
            }
            CheckBotao();
        }
예제 #2
0
        private void saveFile_FileOk(object sender, CancelEventArgs e)
        {
            var x = saveFile;

            if (String.IsNullOrEmpty(x.FileName))
            {
                return;
            }

            RunBarry.destinationfile = x.FileName;
            RunBarry.Execute();

            MessageBox.Show("Arquivos Convertidos com Sucesso", "Desenvolvido por Antonio", MessageBoxButtons.OK, MessageBoxIcon.Information);

            lstLista.Clear();
            RunBarry.Zerar();
            CheckBotao();
        }
예제 #3
0
 private void btnLimpar_Click(object sender, EventArgs e)
 {
     lstLista.Clear();
     RunBarry.Zerar();
     CheckBotao();
 }