Ejemplo n.º 1
0
        private void Close(object sender, RoutedEventArgs e)
        {
            if (IsRetrivingInProgress)
            {
                return;
            }

            p_DocumentMenu menu      = new p_DocumentMenu();
            pp_Languages   languages = new pp_Languages();

            menu.DocumentPageFrame.Content = languages;

            App.MainWindow.AnimatedNavigate(App.MainWindow.MiddleLayerFrame, menu);
        }
Ejemplo n.º 2
0
        private async void AddLanguage(object sender, RoutedEventArgs e)
        {
            if (Culture.SelectedItem != null)
            {
                Culture selectedCulture = Culture.SelectedItem as Culture;
                if (selectedCulture == null)
                {
                    return;
                }

                if (selectedCulture.CompareTo(App.MainWindow.Document.AssembliesLanguage))
                {
                    await App.MainWindow.ShowMessage(StringUtils.String("MB_CultureSameAsNeutral"), MessageBoxButton.OK);

                    return;
                }

                App.MainWindow.Document.AddLanguage((Culture)Culture.SelectedItem);

                pp_Languages languagesPage = new pp_Languages();
                App.MainWindow.AnimatedNavigate(App.MainWindow.DocumentPageFrame, languagesPage, NavigationAnimation.FadeToRight);
            }
        }