Esempio n. 1
0
 protected override void OnPreRender(EventArgs e)
 {
     if (FixedColorButtonId.Length > 0 && !IsDesign)
     {
         FixedColorButton but = this.Parent.FindControl(FixedColorButtonId) as FixedColorButton;
         if (but != null)
         {
             this.ToolTip = but.ToolTip;
         }
     }
     base.OnPreRender(e);
 }
Esempio n. 2
0
 protected override void DescribeComponent(ScriptComponentDescriptor descriptor)
 {
     base.DescribeComponent(descriptor);
     if (FixedColorButtonId.Length > 0 && !IsDesign)
     {
         FixedColorButton but = this.Parent.FindControl(FixedColorButtonId) as FixedColorButton;
         if (but != null)
         {
             descriptor.AddComponentProperty("fixedColorButton", but.ClientID);
         }
         else
         {
             throw new ArgumentException("FixedColorButton control's ID expected");
         }
     }
 }