コード例 #1
0
        private void reset_Click(object sender, RoutedEventArgs e)
        {
            MessageBoxResult result = MessageBox.Show("Bruteforce process will be interrupted, confirm ?", "Please confirm", MessageBoxButton.OKCancel, MessageBoxImage.Warning);

            if (result == MessageBoxResult.OK)
            {
                DecryptageServiceClient service = new DecryptageServiceClient();
                service.Reset(username, token);
            }
        }
コード例 #2
0
        private void WorkState()
        {
            while (Thread.CurrentThread.IsAlive)
            {
                DecryptageServiceClient service = new DecryptageServiceClient();
                updateState(service.GetState(username, token));

                Thread.Sleep(1000);
            }
        }
コード例 #3
0
        private void launchbutton_Click(object sender, RoutedEventArgs e)
        {
            MessageBoxResult result = MessageBox.Show("Bruteforce process will begin, confirm ?", "Please confirm", MessageBoxButton.OKCancel, MessageBoxImage.Warning);

            if (result == MessageBoxResult.OK)
            {
                DecryptageServiceClient service = new DecryptageServiceClient();
                service.LaunchDecryptProcess(contentfiles.ToArray(), namefiles.ToArray(), username, token);
            }
        }
コード例 #4
0
        private void seeresult_Click(object sender, RoutedEventArgs e)
        {
            DecryptageServiceClient service = new DecryptageServiceClient();

            FrontWcfService.Result res = service.GetResult(username, token);

            Result fenres = new Result(res.docname, res.content, res.taux, res.key);

            fenres.Show();
        }
コード例 #5
0
        private string loginUser(string userName, string passWord)
        {
            DecryptageServiceClient service = new DecryptageServiceClient();
            LogInfo info = service.Login(new LogInfo {
                username = userName, password = passWord
            });

            if (info.token != "")
            {
                return(info.token);
            }
            else
            {
                return("");
            }
        }
コード例 #6
0
ファイル: Service.cs プロジェクト: sambao407/Projet-DAD-Exia
 private Service()
 {
     service = new DecryptageServiceClient();
 }