Exemple #1
0
        ///<summary>
        ///
        /// Metodo para chamar o formulario de anexar arquivos
        ///
        ///</summary>
        private void anexarClick(object sender, EventArgs e)
        {
            novaMensagemAnexar newForm;

            if (controleAnexos == 0)
            {
                newForm = new novaMensagemAnexar();
                controleAnexos++;
            }
            else
            {
                newForm = new novaMensagemAnexar(CriptoFiles, PlainFiles);
                CriptoFiles.Clear();
                PlainFiles.Clear();
            }

            newForm.FormClosed += new FormClosedEventHandler(formVisivel);
            newForm.ShowDialog();

            foreach (String f in newForm.getCriptoFiles())
            {
                CriptoFiles.Add(f);
            }
            foreach (String f in newForm.getPlainFiles())
            {
                PlainFiles.Add(f);
            }

            exibeNomeArquivos();
        }
Exemple #2
0
        ///<summary>
        ///
        /// Metodo para chamar o formulario de anexar arquivos
        ///
        ///</summary>
        private void anexarClick(object sender, EventArgs e)
        {
            novaMensagemAnexar newForm;

            if (controleAnexos == 0)
            {
                newForm = new novaMensagemAnexar();
                controleAnexos++;
            }
            else
            {
                newForm = new novaMensagemAnexar(CriptoFiles, PlainFiles);
                CriptoFiles.Clear();
                PlainFiles.Clear();
            }

            newForm.FormClosed += new FormClosedEventHandler(formVisivel);
            newForm.ShowDialog();

            foreach (String f in newForm.getCriptoFiles()) CriptoFiles.Add(f);
            foreach (String f in newForm.getPlainFiles()) PlainFiles.Add(f);

            exibeNomeArquivos();
        }