예제 #1
0
        private async void btn_Dechiffrer_Click(object sender, EventArgs e)
        {
            CUT user_CUT = new CUT();
            CUC user_CUC = new CUC();

            CUC.oSTG.files = new Hashtable();

            if (lst_Files.Items.Count > 0)
            {
                btn_Annuler.Visible = true;
                btn_Dechiffrer.Enabled = false;
                btn_Delete_File.Enabled = false;
                btn_Parcourir.Enabled = false;
            }

            foreach (string filename in openFileDialog1.FileNames)
            {
                CUC.oSTG.files.Add(filename, System.IO.File.ReadAllText(filename));
            }

            STG STG_Dechiffre = await user_CUC.sendMessage(user_CUT.dechiffrer(CUC.oSTG, Convert.ToInt16(txt_SampleSize.Text)));

            btn_Annuler.Visible = false;
            btn_Dechiffrer.Enabled = true;
            btn_Delete_File.Enabled = true;
            btn_Parcourir.Enabled = true;

            General General_Functions = new General();
            General_Functions.sendEmail(STG_Dechiffre);


        }
예제 #2
0
 private void btn_Quitter_Click(object sender, EventArgs e)
 {
     General General_Functions = new General();
     General_Functions.Leave();
 }