Пример #1
0
        private void ListBoxChapters_SelectedIndexChanged(object sender, EventArgs e)
        {
            selectedChapter = (LoadedChapter)ListBoxChapters.SelectedItem;
            TestPlayButton.Enabled = false;

            if (selectedChapter != null)
            {
                TestPlayButton.Enabled = true;
            }
        }
Пример #2
0
        private void writePage(LoadedChapter chapter, int RowIndex)
        {
            LoadedPage page = chapter[RowIndex];

            if(page != null)
            {
                TextBoxCharacterName.Text = page.CharacterName;
                TextBoxDialogue.Text = page.PageDescription;
                ListBoxOptions.DataSource = page.Options.ToList();
            }
        }