Exemplo n.º 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 StreamDisplay( SourceStreamsAndStrength plugIn, IPlugInUISite site )
        {
            // Remember
            AdminSite = site;
            PlugIn = plugIn;

            // Load designer stuff.
            InitializeComponent();

            // Remember color
            m_Background = lstStreams.BackColor;
            m_Signal = txSignal.BackColor;

            // Hide
            lbSignal.Visible = PlugIn.Profile.GetSafeRestrictions().ProvidesSignalInformation;
            txSignal.Visible = lbSignal.Visible;

            // Finish
            lbProfile.Text = string.Format( lbProfile.Text, PlugIn.Profile.Name );
        }
Exemplo n.º 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 StreamDisplay(SourceStreamsAndStrength plugIn, IPlugInUISite site)
        {
            // Remember
            AdminSite = site;
            PlugIn    = plugIn;

            // Load designer stuff.
            InitializeComponent();

            // Remember color
            m_Background = lstStreams.BackColor;
            m_Signal     = txSignal.BackColor;

            // Hide
            lbSignal.Visible = PlugIn.Profile.GetSafeRestrictions().ProvidesSignalInformation;
            txSignal.Visible = lbSignal.Visible;

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