示例#1
0
        /// <summary>
        /// Erzeugt ein neues Anzeigelement.
        /// </summary>
        /// <param name="plugIn">Die zugehörige administrative Erweiterung.</param>
        /// <param name="site">Die aktuelle administrative Umgebung.</param>
        public SignalReport( SignalOverview plugIn, IPlugInUISite site )
        {
            // Remember
            AdminSite = site;
            PlugIn = plugIn;

            // Load designer stuff.
            InitializeComponent();

            // Update
            lbProfile.Text = string.Format( lbProfile.Text, PlugIn.Profile.Name );

            // Prepare all controls
            foreach (SourceSelection source in PlugIn.Profile.AllSources)
            {
                // Create selection
                SourceGroupSelector selector = SourceGroupSelector.Create( source );

                // Read display
                GroupDisplay display;
                if (!m_Displays.TryGetValue( selector, out display ))
                {
                    // Create new
                    display = new GroupDisplay( selector );

                    // Reconnect
                    selector.Display = display;

                    // Configure
                    display.Visible = true;
                    display.Dock = DockStyle.Fill;

                    // Attach to picture box
                    picView.Controls.Add( display );

                    // Remember
                    m_Displays[selector] = display;
                }

                // Register
                display.Register( source );
            }
        }
示例#2
0
        /// <summary>
        /// Erzeugt ein neues Anzeigelement.
        /// </summary>
        /// <param name="plugIn">Die zugehörige administrative Erweiterung.</param>
        /// <param name="site">Die aktuelle administrative Umgebung.</param>
        public SignalReport(SignalOverview plugIn, IPlugInUISite site)
        {
            // Remember
            AdminSite = site;
            PlugIn    = plugIn;

            // Load designer stuff.
            InitializeComponent();

            // Update
            lbProfile.Text = string.Format(lbProfile.Text, PlugIn.Profile.Name);

            // Prepare all controls
            foreach (SourceSelection source in PlugIn.Profile.AllSources)
            {
                // Create selection
                SourceGroupSelector selector = SourceGroupSelector.Create(source);

                // Read display
                GroupDisplay display;
                if (!m_Displays.TryGetValue(selector, out display))
                {
                    // Create new
                    display = new GroupDisplay(selector);

                    // Reconnect
                    selector.Display = display;

                    // Configure
                    display.Visible = true;
                    display.Dock    = DockStyle.Fill;

                    // Attach to picture box
                    picView.Controls.Add(display);

                    // Remember
                    m_Displays[selector] = display;
                }

                // Register
                display.Register(source);
            }
        }