Beispiel #1
0
        public SetCreationPage()
        {
            InitializeComponent();

            if (!StaticWordsStorage.DoesWordsLoaded)
            {
                StaticWordsStorage.Words = CatLangRestClient.GetAllWords();
            }

            view = new SetCreationPageView(
                new ObservableCollection <WordDto>(),
                new ObservableCollection <WordDto>());
            DataContext = view;

            SearchField.Text       = SEARCH_FIELD_EMPTY_MESSAGE;
            SearchField.Foreground = Brushes.Gray;
        }
Beispiel #2
0
 public SetCreationPageView(SetCreationPageView view)
 {
     SelectedItem = null;
     SetWords     = view.SetWords;
     Words        = view.Words;
 }