Interaction logic for SignBrowserPage.xaml
Inheritance: 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);
            }
        }
Example #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);
            }
        }