//event handelers private void open_Window(object sender, RoutedEventArgs e) { isLoading = false; AddWindow add = new AddWindow(); add.Initalize(); add.ShowDialog(); AddWindow.PreviousWebsites.Clear(); AddWindow.LoadFile(AddWindow.FileName, true); InitalizeWindow(); isLoading = true; }
//constructor public MainWindow() { InitializeComponent(); AddWindow.LoadFile(AddWindow.FileName, true); InitalizeWindow(); }