Exemplo n.º 1
0
        private void MainPage_Loaded(object sender, RoutedEventArgs e)
        {
            try
            {
                this.txtSearch.Focus(FocusState.Keyboard);

                if (this._dataFactory == null)
                    this._dataFactory = new DataFactory();

                this._dataFactory.Init();
            }
            catch (Exception ex)
            {
                this.ShowError(ex);
            }
        }
Exemplo n.º 2
0
        private void MainPage_Loaded(object sender, RoutedEventArgs e)
        {
            try
            {
                this.mainFrame.Navigate(typeof(DefaultPage));

                if (this._dataFactory == null)
                    this._dataFactory = new DataFactory();

                this._dataFactory.Init();
            }
            catch (Exception ex)
            {
                this.ShowMessage(ex.Message);
            }
        }