private void Window_Loaded(object sender, RoutedEventArgs e) { if (UsuariosModel.ObtenerUsuarioContraseña()) { StyleManager.ApplicationTheme = new Windows8Theme(); this.LaunchBusyIndicator(); string path = ConfigurationManager.AppSettings["ErrorPath"].ToString(); if (!File.Exists(path)) { Directory.CreateDirectory(path); } } }