public MainForm()
        {
            InitializeComponent();
            picLoading.Hide();


            _fhs = new FamilyHistorySource(FamilyHistorySource.SourceType.FamilySearchService);

            HELPER_EnableOutputUI(false);
            HELPER_EnableStartUI(true);
            txtOutput.Text = "Welcome to the '3D Family Tree File Utility'." + System.Environment.NewLine +
                             "This utility will help you create the Family History data file needed for 3D Family Tree.";
            btnStart.Focus();

            _myAppDataStorage = AppDataStorage.Read();

            if (string.IsNullOrEmpty(_myAppDataStorage.FamilyInfoFileName))
            {
                _myAppDataStorage.FamilyInfoFileName = Path.GetFullPath("..\\MyFamilyInfo.xml");
                // first time in, so wait until we have a FILE SAVE (or opened) before letting them play it
                this.btnPlay3DFT.Enabled = false;
                txtOutput.AppendText(System.Environment.NewLine + System.Environment.NewLine + "--> Create or open a file, so that you can play it.");

            }

            txtPlayFile.Text = _myAppDataStorage.FamilyInfoFileName;
            _myAppDataStorage.Save();
        }
 public SignInFormWizard(FamilyHistorySource fhs, FamilySearchFamilyTree ft, string username, string password,
     string developerKey)
 {
     _fhs = fhs;
     _username = username;
     _password = password;
     _developerKey = developerKey;
     _ft = ft;
     InitializeComponent();
     lblSandbox.Visible = _fhs.isSandBox;
     txtUsername.Text = _username;
     txtPassword.Text = _password;
     this.ActiveControl = txtUsername;
     txtUsername.Focus();
 }