예제 #1
0
 public void RefreshInfo()
 {
     backedUpLevels = GetBackedUpLevelNames();
     BackedUpLevelsList.SetItems(backedUpLevels);
     backedUpScripts = GetBackedUpScriptNames();
     BackedUpScriptsList.SetItems(backedUpScripts);
 }
예제 #2
0
        public override void Selected(GUI.Selection selection)
        {
            bool promptQuit = false;

            GUI.ListBox listBox = selection.RowIndex switch
            {
                0 => BackedUpLevelsList,
                1 => BackedUpScriptsList,
                _ => throw new NotImplementedException(),
            };
            CommandsList.HighlightCurrentItem();
            listBox.Clear();
            listBox.Draw();
            listBox.NavigateToDefault();
            while (!promptQuit)
            {
                var subSelection = BackedUpLevelsList.PromptSelection();
                if (subSelection.Command == Properties.Command.Cancel)
                {
                    promptQuit = true;
                }
            }

            CommandsList.SelectCurrentItem();
            DetailsTextBox.Clear();
            WriteSummary();
        }