public Button(ViewContext view) { this.ViewContext = view; this.Component = new ButtonComponent(); this.Component.HtmlProperties = new HtmlProperties(view, this.Component.GetType()); this.Component.Behaviour = HtmlBehaviourType.Submit; this.Component.Action = "#EmptyValue"; this.Component.HtmlProperties.Value = "#EmptyValue"; this.Component.Size = ButtonSize.normal; this.Component.Type = ButtonType.Default; this.Component.State = ButtonState.Enabled; this.Component.Skin = new ButtonSkin(); }
public Button(ViewContext view, ButtonComponent button) { this.ViewContext = view; this.Component = button; }