private void btCheck_Click(object sender, RoutedEventArgs e)
        {
            if (String.IsNullOrEmpty(filepath))
            {
                MessageBox.Show("No file selected. Please select a passwordhash database and indicate whether it is ordered by count or by hash.", "Error", MessageBoxButton.OK, MessageBoxImage.Error);
                return;
            }

            List <Password> searches = new List <Password>();

            foreach (Control c in passwords.Children)
            {
                if (c is PasswordControl)
                {
                    PasswordControl pwc = (c as PasswordControl);
                    if (!pwc.Password.IsLocked && pwc.Edited)
                    {
                        pwc.Password.Hash = PWC.Hash(pwc.PasswordString);
                        searches.Add(pwc.Password);
                    }
                }
            }
            PWC.CreateSearchesInFile(filepath, searches, searchType);
        }
 private void btStop_Click(object sender, RoutedEventArgs e)
 {
     PWC.StopSeeking();
 }