Beispiel #1
0
 public TooltipAlert(TooltipAlertArg arg, AlertAlignment align)
     : base(align)
 {
     InitializeComponent();
     Title       = arg.Title;
     Text        = arg.Text;
     CustomImage = arg.CustomImage;
     Icon        = arg.Icon;
     ResetRegion();
 }
 public TooltipAlert(TooltipAlertArg arg, AlertAlignment align)
     : base(align)
 {
     InitializeComponent();
     Title = arg.Title;
     Text = arg.Text;
     CustomImage = arg.CustomImage;
     Icon = arg.Icon;
     ResetRegion();
 }
 protected override Alert CreateAlertImpl(object arg, AlertAlignment align)
 {
     TooltipAlert alert = new TooltipAlert((TooltipAlertArg)arg, align);
     switch (AlertStyle)
     {
         case TooltipAlertStyle.System:
             alert.Renderer = new SystemTooltipAlertRenderer();
             break;
         case TooltipAlertStyle.Custom:
             alert.Renderer = CustomRenderer;
             break;
     }
     return alert;
 }
Beispiel #4
0
        protected override Alert CreateAlertImpl(object arg, AlertAlignment align)
        {
            TooltipAlert alert = new TooltipAlert((TooltipAlertArg)arg, align);

            switch (AlertStyle)
            {
            case TooltipAlertStyle.System:
                alert.Renderer = new SystemTooltipAlertRenderer();
                break;

            case TooltipAlertStyle.Custom:
                alert.Renderer = CustomRenderer;
                break;
            }
            return(alert);
        }
        /// <summary>
        /// Creates a new alert window.
        /// </summary>
        /// <param name="arg">Object passed to method CreateAlertImpl().</param>
        /// <param name="align">screen position where alert windows appear.</param>
        /// <returns></returns>
        public Alert CreateAlert(object arg, AlertAlignment align)
        {
            Alert alert = CreateAlertImpl(arg, align);

            alert.HidingStyle = HidingStyle;

            alert.ShowingStyle = ShowingStyle;

            alert.HidingDelay = HidingDelay;

            alert.ShowingDuration = ShowingDuration;

            alert.HidingDuration = HidingDuration;

            alert.MaximumSize = MaximumSize;

            alert.MinimumSize = MinimumSize;

            alert.Padding = Padding;

            alert.AlertMouseDown += new EventHandler <MouseEventArgs>(alert_AlertMouseDown);

            return(alert);
        }
 /// <summary>
 /// Creates a new alert window. Needs for overriding.
 /// </summary>
 /// <param name="arg">Object passed to method CreateAlertImpl().</param>
 /// <param name="align">screen position where alert windows appear.</param>
 /// <returns></returns>
 protected abstract Alert CreateAlertImpl(object arg, AlertAlignment align);
Beispiel #7
0
 protected Alert(AlertAlignment align)
 {
     InitializeComponent();
     this.align = align;
 }
 /// <summary>
 /// Creates a new alert window. Needs for overriding.
 /// </summary>
 /// <param name="arg">Object passed to method CreateAlertImpl().</param>
 /// <param name="align">screen position where alert windows appear.</param>
 /// <returns></returns>
 protected abstract Alert CreateAlertImpl(object arg, AlertAlignment align);
        /// <summary>
        /// Creates a new alert window.
        /// </summary>
        /// <param name="arg">Object passed to method CreateAlertImpl().</param>
        /// <param name="align">screen position where alert windows appear.</param>
        /// <returns></returns>
        public Alert CreateAlert(object arg, AlertAlignment align)
        {
            Alert alert = CreateAlertImpl(arg, align);

            alert.HidingStyle = HidingStyle;

            alert.ShowingStyle = ShowingStyle;

            alert.HidingDelay = HidingDelay;

            alert.ShowingDuration = ShowingDuration;

            alert.HidingDuration = HidingDuration;

            alert.MaximumSize = MaximumSize;

            alert.MinimumSize = MinimumSize;

            alert.Padding = Padding;

            alert.AlertMouseDown += new EventHandler<MouseEventArgs>(alert_AlertMouseDown);

            return alert;
        }
Beispiel #10
0
 public TooltipAlert(AlertAlignment align)
     : base(align)
 {
     InitializeComponent();
     ResetRegion();
 }
Beispiel #11
0
 protected Alert(AlertAlignment align)
 {
     InitializeComponent();
     this.align = align;
 }
 public TooltipAlert(AlertAlignment align)
     : base(align)
 {
     InitializeComponent();
     ResetRegion();
 }