Esempio 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;
            }
        }
Esempio 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;
            }
        }