Exemplo n.º 1
0
        /// <summary>
        /// Erzeugt eine neue Quellgruppe.
        /// </summary>
        /// <param name="selector">Die zugehörige Auswahlkomponente.</param>
        public GroupDisplay( SourceGroupSelector selector )
        {
            // Remember
            m_Selector = selector;

            // Load designer stuff
            InitializeComponent();
        }
Exemplo n.º 2
0
        /// <summary>
        /// Erzeugt eine neue Quellgruppe.
        /// </summary>
        /// <param name="selector">Die zugehörige Auswahlkomponente.</param>
        public GroupDisplay(SourceGroupSelector selector)
        {
            // Remember
            m_Selector = selector;

            // Load designer stuff
            InitializeComponent();
        }
Exemplo n.º 3
0
        /// <summary>
        /// Zeigt eine Art von Quellgruppen an.
        /// </summary>
        /// <param name="sender">Wird ignoriert.</param>
        /// <param name="e">Wird ignoriert.</param>
        private void selGroup_SelectionChangeCommitted(object sender, EventArgs e)
        {
            // Disable all
            foreach (GroupDisplay display in m_Displays.Values)
            {
                display.Visible = false;
            }

            // Get the selection
            SourceGroupSelector show = (SourceGroupSelector)selGroup.SelectedItem;

            // Select it
            if (null != show)
            {
                show.Display.Visible = true;
            }
        }
Exemplo n.º 4
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);
            }
        }