/// <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();
        }