private void GetDecryptAndShow()
        {
            dataHist = DataOperations.PasswordHistoryOperations.SelectPasswordHistory(dataId);

            foreach (var passwordHistoryDto in dataHist)
            {
                passwordHistoryDto.PasswordHist = MyAes.DecryptStringToString(passwordHistoryDto.PasswordHist);
            }

            DataHistGrid.ItemsSource           = dataHist;
            DataHistGrid.Columns[0].Visibility = Visibility.Collapsed;
            DataHistGrid.Columns[DataHistGrid.Columns.Count - 1].Width = new DataGridLength(1, DataGridLengthUnitType.Star);
            DataHistGrid.IsReadOnly = true;
        }
        private void GetDecryptAndShow()
        {
            DataStatic.UserData = DataOperations.UserDataOperations.SelectUserData(DataStatic.LoggedUser.Id);

            foreach (var userDataDto in DataStatic.UserData)
            {
                userDataDto.ServPassword = MyAes.DecryptStringToString(userDataDto.ServPassword);
            }

            UserDataGrid.ItemsSource           = DataStatic.UserData;
            UserDataGrid.Columns[0].Visibility = Visibility.Collapsed;
            UserDataGrid.Columns[UserDataGrid.Columns.Count - 1].Width = new DataGridLength(1, DataGridLengthUnitType.Star);
            UserDataGrid.Columns[1].Header = "Nazwa serwisu";
            UserDataGrid.Columns[2].Header = "Hasło";
            UserDataGrid.Columns[3].Header = "Komentarz";
        }