Interaction logic for SignBrowserPage.xaml
Наследование: System.Windows.Controls.UserControl
        private void btnLearn_Click(object sender, RoutedEventArgs e)
        {
            if (signBrowserPage == null) {
                signBrowserPage = new SignBrowserPage((SystemStatusCollection) this.DataContext);
            }

            UIElementCollection children = ((Panel)this.Parent).Children;
            if (!children.Contains(signBrowserPage)) {
                children.Add(signBrowserPage);
            }
        }
Пример #2
0
        private void btnLearn_Click(object sender, RoutedEventArgs e)
        {
            if (signBrowserPage == null)
            {
                signBrowserPage = new SignBrowserPage((SystemStatusCollection)this.DataContext);
            }

            UIElementCollection children = ((Panel)this.Parent).Children;

            if (!children.Contains(signBrowserPage))
            {
                children.Add(signBrowserPage);
            }
        }