public override void InitializeNewComponent(IDictionary defaultValues)
    {
        base.InitializeNewComponent(defaultValues);
        ICommonControl control = this.Component as ICommonControl;

        control.Text = control.Tag.ToString();
    }
 public override void Initialize(IComponent component)
 {
     base.Initialize(component);
     this.control = component as ICommonControl;
 }
示例#3
0
文件: CommonControl.cs 项目: M1C/Eto
 protected CommonControl(Generator generator, Type type, bool initialize = true)
     : base(generator, type, initialize)
 {
     this.inner = (ICommonControl)base.Handler;
 }
示例#4
0
 protected CommonControl(Generator generator, Type type, bool initialize = true)
     : base(generator, type, initialize)
 {
     this.inner = (ICommonControl)base.Handler;
 }