コード例 #1
0
        private static void OnShowPlanChanged(DependencyObject source, DependencyPropertyChangedEventArgs e)
        {
            RSSEServerView control = source as RSSEServerView;

            if ((Boolean)e.NewValue)
            {
                control.lblPlan.Visibility = Visibility.Visible;
                control.dgPlan.Visibility  = Visibility.Visible;

                control.showSection(control.lblApplication, control.dgApplications, false);
                control.showSection(control.lblEnvironments, control.dgEnvironments, false);
                control.showSection(control.lblGroups, control.lbGroups, false);
                control.showSection(control.lblSchemas, control.dgSchemas, false);
                control.showSection(control.lblScripts, control.dgScripts, false);
            }
            else
            {
                control.lblPlan.Visibility = Visibility.Collapsed;
                control.dgPlan.Visibility  = Visibility.Collapsed;

                control.showSection(control.lblApplication, control.dgApplications, true);
                control.showSection(control.lblEnvironments, control.dgEnvironments, true);
                control.showSection(control.lblGroups, control.lbGroups, true);
                control.showSection(control.lblSchemas, control.dgSchemas, true);
                control.showSection(control.lblScripts, control.dgScripts, true);
            }
        }
コード例 #2
0
        private static void OndataToChanged(DependencyObject source, DependencyPropertyChangedEventArgs e)
        {
            RSSEServerView control = source as RSSEServerView;

            //var uriSource = new Uri((String)e.NewValue, UriKind.Relative);
            //control.imgLogo.Source = new BitmapImage(uriSource);
        }
コード例 #3
0
        private static void OndataFromChanged(DependencyObject source, DependencyPropertyChangedEventArgs e)
        {
            RSSEServerView control = source as RSSEServerView;

            DataSet dsFrom = (DataSet)e.NewValue;

            control.dgApplications.ItemsSource = dsFrom.Tables["Applications"].DefaultView;
        }
コード例 #4
0
        private static void OnTitleChanged(DependencyObject source, DependencyPropertyChangedEventArgs e)
        {
            RSSEServerView control = source as RSSEServerView;

            control.lblTitle.Text = (String)e.NewValue;
        }