/// <summary> /// Initializes a new instance of the <see cref="LinkCell"/> class. /// </summary> /// <param name="value">The value.</param> /// <param name="executeLink">Event to execute when the user Click on this cell</param> public LinkCell(object value, PositionEventHandler executeLink) : this(value) { if (executeLink != null) { Click += executeLink; } }
/// <summary> /// Initializes a new instance of the <see cref="ButtonCell"/> class. /// </summary> /// <param name="p_Click">The click.</param> protected ButtonCell(PositionEventHandler p_Click) : this() { if (p_Click != null) { Click += p_Click; } }
/// <summary> /// Constructor /// </summary> /// <param name="p_Value"></param> /// <param name="p_Click"></param> public Button(object p_Value, PositionEventHandler p_Click) : base(p_Value) { Behaviors.Add(BehaviorModels.Button.Default); VisualModel = VisualModels.Header.Default; if (p_Click != null) { Click += p_Click; } }
/// <summary> /// Initializes a new instance of the <see cref="ButtonCell"/> class. /// </summary> /// <param name="value">The value.</param> /// <param name="p_Click">The click.</param> public ButtonCell(object value, PositionEventHandler p_Click) : base(value) { BehaviorModels.Add(BehaviorModel.ButtonBehaviorModel.Default); VisualModel = VisualModels.Header.Default; if (p_Click != null) { Click += p_Click; } }
/// <summary> /// Initializes a new instance of the <see cref="LinkCell"/> class. /// </summary> /// <param name="p_ExecuteLink">Event to execute when the user Click on this cell</param> protected LinkCell(PositionEventHandler p_ExecuteLink) : this() { if (p_ExecuteLink != null) { Click += p_ExecuteLink; } }