// додає групи для перегляду
        //public void AddItemsToComboBox()
        //{
        //  theme = client.GetTheme();
        //  ThemeComboBox.Items.Clear();
        //  if (theme.Count > 0)
        //  {
        //    foreach (DTOTheme item in theme)
        //    {
        //      ComboBoxItem gnItem = new ComboBoxItem() { Content = item.ThemeName };
        //      ThemeComboBox.Items.Add(gnItem);
        //    }
        //  }
        //  else
        //  {
        //    ComboBoxItem gnItem = new ComboBoxItem() { Content = "No Groups" };
        //    ThemeComboBox.Items.Add(gnItem);
        //  }

        //}

        //public void SetListOfTest()
        //{
        //    tests = client.GetAllTests();
        //    if (tests.Count != 0)
        //        testsGrid.ItemsSource = tests;
        //}

        public void SetListOfTest()
        {
            tests = client.GetAllTests();
            if (tests.Count != 0)
            {
                foreach (var t in tests)
                {
                    string        theme = themes.FirstOrDefault(f => f.Id == t.ThemeId).ThemeName;
                    TestViewModel testV = new TestViewModel()
                    {
                        TestId = t.TestId, TestName = t.TestName, MixQuestionsOrder = t.MixQuestionsOrder, MixAnswersOrder = t.MixAnswersOrder, TestTime = t.TestTime, ThemeId = t.ThemeId, ThemeName = theme
                    };
                    testsV.Add(testV);
                }
                testsGrid.ItemsSource = testsV;
            }
        }