/// <summary>
        /// Shows the New User Control.
        /// </summary>
        private void ShowNewUserControl()
        {
            HideFamilyDataControl();
            HideDetailsPane();
            DiagramControl.Visibility     = Visibility.Collapsed;
            WelcomeUserControl.Visibility = Visibility.Collapsed;

            if (PersonInfoControl.Visibility == Visibility.Visible)
            {
                ((Storyboard)this.Resources["HidePersonInfo"]).Begin(this);
            }

            NewUserControl.Visibility = Visibility.Visible;
            NewUserControl.ClearInputFields();
            NewUserControl.SetDefaultFocus();

            // Delete to clear existing files and re-Create the necessary directories
            string tempFolder = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData),
                                             App.ApplicationFolderName);

            tempFolder = Path.Combine(tempFolder, FamilyShowLib.App.AppDataFolderName);
            People.RecreateDirectory(tempFolder);

            string photoFolder = Path.Combine(tempFolder, Photo.Const.PhotosFolderName);

            People.RecreateDirectory(photoFolder);

            string storyFolder = Path.Combine(tempFolder, Story.Const.StoriesFolderName);

            People.RecreateDirectory(storyFolder);
        }
Beispiel #2
0
        /// <summary>
        /// Show the New User Control.
        /// </summary>
        private void ShowNewUserControl()
        {
            HideDetailsPane();
            DiagramControl.Visibility     = Visibility.Collapsed;
            WelcomeUserControl.Visibility = Visibility.Collapsed;

            NewUserControl.Visibility = Visibility.Visible;
            NewUserControl.ClearInputFields();
            NewUserControl.SetDefaultFocus();
        }
Beispiel #3
0
        /// <summary>
        /// Show the New User Control.
        /// </summary>
        private void ShowNewUserControl()
        {
            HideFamilyDataControl();
            HideDetailsPane();
            DiagramControl.Visibility     = Visibility.Collapsed;
            WelcomeUserControl.Visibility = Visibility.Collapsed;

            if (PersonInfoControl.Visibility == Visibility.Visible)
            {
                ((Storyboard)this.Resources["HidePersonInfo"]).Begin(this);
            }

            NewUserControl.Visibility = Visibility.Visible;
            NewUserControl.ClearInputFields();
            NewUserControl.SetDefaultFocus();
        }
Beispiel #4
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 15 "..\..\MainWindow.xaml"
                ((System.Windows.Media.Animation.Storyboard)(target)).Completed += new System.EventHandler(this.ShowPersonInfo_StoryboardCompleted);

            #line default
            #line hidden
                return;

            case 2:

            #line 27 "..\..\MainWindow.xaml"
                ((System.Windows.Media.Animation.Storyboard)(target)).Completed += new System.EventHandler(this.HidePersonInfo_StoryboardCompleted);

            #line default
            #line hidden
                return;

            case 3:

            #line 39 "..\..\MainWindow.xaml"
                ((System.Windows.Media.Animation.Storyboard)(target)).Completed += new System.EventHandler(this.ShowFamilyData_StoryboardCompleted);

            #line default
            #line hidden
                return;

            case 4:

            #line 51 "..\..\MainWindow.xaml"
                ((System.Windows.Media.Animation.Storyboard)(target)).Completed += new System.EventHandler(this.HideFamilyData_StoryboardCompleted);

            #line default
            #line hidden
                return;

            case 5:

            #line 66 "..\..\MainWindow.xaml"
                ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.NewFamily);

            #line default
            #line hidden
                return;

            case 6:

            #line 67 "..\..\MainWindow.xaml"
                ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.OpenFamily);

            #line default
            #line hidden
                return;

            case 7:

            #line 68 "..\..\MainWindow.xaml"
                ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.SaveFamily);

            #line default
            #line hidden
                return;

            case 8:

            #line 69 "..\..\MainWindow.xaml"
                ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.SaveFamily);

            #line default
            #line hidden
                return;

            case 9:

            #line 70 "..\..\MainWindow.xaml"
                ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.SaveFamilyAs);

            #line default
            #line hidden
                return;

            case 10:

            #line 71 "..\..\MainWindow.xaml"
                ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.PrintFamily);

            #line default
            #line hidden
                return;

            case 11:

            #line 72 "..\..\MainWindow.xaml"
                ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.ImportGedcom);

            #line default
            #line hidden
                return;

            case 12:

            #line 73 "..\..\MainWindow.xaml"
                ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.ExportGedcom);

            #line default
            #line hidden
                return;

            case 13:

            #line 74 "..\..\MainWindow.xaml"
                ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.WhatIsGedcom);

            #line default
            #line hidden
                return;

            case 14:

            #line 75 "..\..\MainWindow.xaml"
                ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.ExportXps);

            #line default
            #line hidden
                return;

            case 15:

            #line 76 "..\..\MainWindow.xaml"
                ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.ChangeSkin);

            #line default
            #line hidden
                return;

            case 16:
                this.HeaderBorder = ((System.Windows.Controls.Border)(target));
                return;

            case 17:
                this.Header = ((System.Windows.Controls.DockPanel)(target));
                return;

            case 18:
                this.Vertigo = ((System.Windows.Shapes.Rectangle)(target));

            #line 85 "..\..\MainWindow.xaml"
                this.Vertigo.MouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.Vertigo_MouseLeftButtonUp);

            #line default
            #line hidden
                return;

            case 19:
                this.MenuBorder = ((System.Windows.Controls.Border)(target));
                return;

            case 20:
                this.NewMenu = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 21:
                this.OpenMenu = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 22:
                this.SaveMenu = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 23:
                this.GedcomMenu = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 24:
                this.SkinsMenu = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 25:
                this.MainGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 26:
                this.DiagramPane = ((System.Windows.Controls.Grid)(target));
                return;

            case 27:
                this.column1CloneForLayer0 = ((System.Windows.Controls.ColumnDefinition)(target));
                return;

            case 28:
                this.DiagramBorder = ((System.Windows.Controls.Border)(target));
                return;

            case 29:
                this.DiagramControl = ((Microsoft.FamilyShow.DiagramViewer)(target));
                return;

            case 30:
                this.DetailsPane = ((System.Windows.Controls.Grid)(target));
                return;

            case 31:
                this.DetailsControl = ((Microsoft.FamilyShow.Details)(target));
                return;

            case 32:
                this.NewUserControl = ((Microsoft.FamilyShow.NewUserControl)(target));
                return;

            case 33:
                this.WelcomeUserControl = ((Microsoft.FamilyShow.Welcome)(target));
                return;

            case 34:
                this.PersonInfoControl = ((Microsoft.FamilyShow.PersonInfo)(target));
                return;

            case 35:
                this.FamilyDataControl = ((Microsoft.FamilyShow.FamilyData)(target));
                return;

            case 36:
                this.OldVersionMessageControl = ((Microsoft.FamilyShow.OldVersionMessage)(target));
                return;
            }
            this._contentLoaded = true;
        }