Ejemplo n.º 1
0
 private void InitializeComponent()
 {
     serverText  = new Growl.Destinations.HighlightTextBox();
     serverLabel = new System.Windows.Forms.Label();
     labelInfo   = new System.Windows.Forms.Label();
     panelDetails.SuspendLayout();
     SuspendLayout();
     //
     // panelDetails
     //
     panelDetails.Controls.Add(serverLabel);
     panelDetails.Controls.Add(serverText);
     panelDetails.Controls.Add(labelInfo);
     //
     // serverText
     //
     serverText.HighlightColor = System.Drawing.Color.FromArgb(((((254)))), ((((250)))), ((((184)))));
     serverText.Location       = new System.Drawing.Point(108, 20);
     serverText.Name           = "serverText";
     serverText.Size           = new System.Drawing.Size(211, 20);
     serverText.TabIndex       = 2;
     serverText.TextChanged   += serverText_TextChanged;
     //
     // serverLabel
     //
     serverLabel.AutoSize = true;
     serverLabel.Location = new System.Drawing.Point(19, 23);
     serverLabel.Name     = "serverLabel";
     serverLabel.Size     = new System.Drawing.Size(83, 13);
     serverLabel.TabIndex = 1;
     serverLabel.Text     = "XBMC machine:";
     //
     // labelInfo
     //
     labelInfo.Location = new System.Drawing.Point(33, 66);
     labelInfo.Name     = "labelInfo";
     labelInfo.Size     = new System.Drawing.Size(280, 68);
     labelInfo.TabIndex = 7;
     labelInfo.Text     =
         "Remember to enable \'Allow programs on this system to control XBMC\' in XBMC option"
         + "s.\r\n\r\nIf XBMC is in a different machine you also need to enable \'Allow programs "
         + "on other systems to control XBMC\'.";
     //
     // XbmcInputs
     //
     AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     Name = "XbmcInputs";
     panelDetails.ResumeLayout(false);
     panelDetails.PerformLayout();
     ResumeLayout(false);
 }
    private static void HighlightRulesChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
    {
        HighlightTextBox tb = (HighlightTextBox)sender;

        tb.ApplyHighlights();
    }