private void Button_Click_2(object sender, RoutedEventArgs e)
 {
     try
     {
         Login log = new Login(1);
         log.Hide();
         log.ShowDialog();
         Refresh();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.ToString());
     }
 }
 private void Button_Click_3(object sender, RoutedEventArgs e)
 {
     try
     {
         var users = ClientDB.AllAccount();
         string tempStr = Cryptography.Encrypt((DataGridUsers.SelectedItem as DataRowView)[0].ToString());
         Login log = new Login(Cryptography.Decrypt(tempStr), Cryptography.Decrypt(users[tempStr]), 1);
         log.ShowDialog();
         Refresh();
     }
     catch (Exception ex)
     {
         //MessageBox.Show(ex.ToString());
         MessageBox.Show("Выберите адрес для редактирования");
     }
 }