private void Tutorial_Load(object sender, EventArgs e) { _sections = TutorialData.GetTutorialData(); if (_sections != null && _sections.Count > 0) { SetSection(_sections[0].Title, true); } else { MessageBox.Show("No tutorial data to display", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning); this.Close(); } }
public TutorialIndex(TutSectionsList sections) { InitializeComponent(); _sections = sections; }