public MainWindow() { InitializeComponent(); txtTest.Content = "Config Files Exist!"; XMLReader.CreateWorkingDirectory(); //creates all the necessary files the first time the application is loaded. if (XMLReader.BlankXMLCheck()) { Wizard w = new Wizard(); w.ShowDialog(); this.Visibility = Visibility.Hidden; this.Close(); } }