public void Close() { if (_promptWindow?.IsLoaded == true) { _promptWindow?.Close(); } }
/// <summary> /// Creates an empty roster for the user. /// </summary> private void CreateNewRoster() { PromptWindow.Close(); FighterList newList = new FighterList { ListID = CreateFighterID(CurrentRoster.SelectedFighters), ListName = NewRosterName }; AvailableRosters.Add(newList); CreateRosterSelectList(); CurrentRoster = newList; }