Esempio n. 1
0
        // Load data for the ViewModel Items
        private void MainPage_Loaded(object sender, RoutedEventArgs e)
        {
            //http://pvgn50088790a:3399/CodeWebService.asmx
            //if (!App.ViewModel.IsDataLoaded)
            //{
            //    App.ViewModel.LoadData();
            //}

            _isthreecc = Convert.ToInt32(NavigationContext.QueryString["isthreecc"]);
            _wvm = new WordViewModel(_isthreecc, App.GetLang());
            _wvm.AllWordsFound += new WordViewModel.AllWordsFoundEventHandler(wvm_AllWordsFound);
            _wvm.WordsByAlphabetFound += new WordViewModel.WordsByAlphabetFoundEventHandler(wvm_WordsByAlphabetFound);

            if (_isthreecc == 1)
            {
                if (App.ConfigSettings.Lang == "en-US")
                    pivotDictionary.Title = "3-Character Classic";
                else
                    pivotDictionary.Title = "3-Charakter Klassisch";
            }
            else
            {
                if (App.ConfigSettings.Lang == "en-US")
                    pivotDictionary.Title = "Glossary";
                else
                    pivotDictionary.Title = "Glossar";
            }
        }
Esempio n. 2
0
        private void PhoneApplicationPage_Loaded(object sender, RoutedEventArgs e)
        {
            try
            {
                //ApplicationBarIconButton btn = ApplicationBar.Buttons[0] as ApplicationBarIconButton;
                //btn.IsEnabled = false;


                _onload = true;
                if (NavigationContext.QueryString.Count > 0)
                {
                    if (NavigationContext.QueryString.Keys.Contains("wordname"))
                    {
                        myAutocompleteBox.Text = NavigationContext.QueryString["wordname"].ToString();
                    }
                    _isthreecc          = Convert.ToInt32(NavigationContext.QueryString["isthreecc"]);
                    _wvm                = new WordViewModel(_isthreecc, App.GetLang());
                    _wvm.AllWordsFound += new WordViewModel.AllWordsFoundEventHandler(wvm_AllWordsFound);
                    _wvm.TheWordFound  += new WordViewModel.TheWordFoundEventHandler(wvm_TheWordFound);
                    btnSearch_Click(null, null);
                }
                _onload = false;
            }
            catch (Exception ex)
            {
                App.ShowMessageBox(ex);
            }
        }
Esempio n. 3
0
        // Load data for the ViewModel Items
        private void MainPage_Loaded(object sender, RoutedEventArgs e)
        {
            //http://pvgn50088790a:3399/CodeWebService.asmx
            //if (!App.ViewModel.IsDataLoaded)
            //{
            //    App.ViewModel.LoadData();
            //}

            _isthreecc                 = Convert.ToInt32(NavigationContext.QueryString["isthreecc"]);
            _wvm                       = new WordViewModel(_isthreecc, App.GetLang());
            _wvm.AllWordsFound        += new WordViewModel.AllWordsFoundEventHandler(wvm_AllWordsFound);
            _wvm.WordsByAlphabetFound += new WordViewModel.WordsByAlphabetFoundEventHandler(wvm_WordsByAlphabetFound);

            if (_isthreecc == 1)
            {
                if (App.ConfigSettings.Lang == "en-US")
                {
                    pivotDictionary.Title = "3-Character Classic";
                }
                else
                {
                    pivotDictionary.Title = "3-Charakter Klassisch";
                }
            }
            else
            {
                if (App.ConfigSettings.Lang == "en-US")
                {
                    pivotDictionary.Title = "Glossary";
                }
                else
                {
                    pivotDictionary.Title = "Glossar";
                }
            }
        }
Esempio n. 4
0
        private void PhoneApplicationPage_Loaded(object sender, RoutedEventArgs e)
        {
            try
            {      


                //ApplicationBarIconButton btn = ApplicationBar.Buttons[0] as ApplicationBarIconButton;
                //btn.IsEnabled = false;


                _onload = true;
                if (NavigationContext.QueryString.Count > 0)
                {
                    if (NavigationContext.QueryString.Keys.Contains("wordname"))
                        myAutocompleteBox.Text = NavigationContext.QueryString["wordname"].ToString();
                    _isthreecc = Convert.ToInt32(NavigationContext.QueryString["isthreecc"]);
                    _wvm = new WordViewModel(_isthreecc,App.GetLang());
                    _wvm.AllWordsFound += new WordViewModel.AllWordsFoundEventHandler(wvm_AllWordsFound);
                    _wvm.TheWordFound += new WordViewModel.TheWordFoundEventHandler(wvm_TheWordFound);
                    btnSearch_Click(null, null);
                }
                _onload = false;
            }
            catch (Exception ex)
            {
                App.ShowMessageBox(ex);
            }
        }