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); } }
private void WorkState() { while (Thread.CurrentThread.IsAlive) { DecryptageServiceClient service = new DecryptageServiceClient(); updateState(service.GetState(username, token)); Thread.Sleep(1000); } }
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); } }
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(); }
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(""); } }
private Service() { service = new DecryptageServiceClient(); }