Пример #1
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);
            }
        }
Пример #2
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);
            }
        }