private void AddMods_Click(object sender, RoutedEventArgs e) { if (_workshopFilesWindow != null) { return; } _workshopFilesWindow = new WorkshopFilesWindow(this, _profile); _workshopFilesWindow.Owner = this; _workshopFilesWindow.Closed += WorkshopFilesWindow_Closed; _workshopFilesWindow.Show(); }
private void WorkshopFilesWindow_Closed(object sender, EventArgs e) { _workshopFilesWindow = null; this.Activate(); }