private void DemonstrationListItemSelectionChanged(object sender, ListViewItemSelectionChangedEventArgs e) { Demonstration demonstration = (Demonstration)e.Item.Tag; _currentDemonstation = null; browser.DocumentText = string.Empty; outputBox.Text = string.Empty; if (e.IsSelected) { _currentDemonstation = demonstration; browser.DocumentText = demonstration.Explanation; } }
private void DemonstrationListItemSelectionChanged(object sender, ListViewItemSelectionChangedEventArgs e) { Demonstration demonstration = (Demonstration)e.Item.Tag; _currentDemonstation = null; browser.DocumentText = string.Empty; outputBox.Text = string.Empty; if (e.IsSelected) { _currentDemonstation = demonstration; browser.DocumentText = demonstration.Explanation; } }