示例#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;
            }
        }
示例#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;
            }
        }