Beispiel #1
0
        /// <summary>
        /// Loading the UserControl of the search to the main screen and logging its events
        /// </summary>
        internal void LoadSearch()
        {
            MessageArea.IsOpen = false;
            SearchUserControl search = new SearchUserControl();

            search.SerachDone += (sender, e) =>
            {
                SearchResultEventArgs args = e as SearchResultEventArgs;
                LoadSearchResult(args.SearchResult);
            };
            CurrnetUserConrol = search;
        }
Beispiel #2
0
 public SearchUserControlVM(SearchUserControl searchUserControl)
 {
     this.View  = searchUserControl;
     Dictionary = new Dictionary <string, List <object> >();
     Working    = false;
     new Thread(() =>
     {
         FetchingFromDB = true;
         Products       = new SearchUserControlM().GetAllProducts();
         FetchingFromDB = false;
     }).Start();
 }