Ejemplo n.º 1
0
        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;
            }
        }
Ejemplo n.º 2
0
        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;
            }
        }