public void Close()
 {
     if (_promptWindow?.IsLoaded == true)
     {
         _promptWindow?.Close();
     }
 }
예제 #2
0
        /// <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;
        }