コード例 #1
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;
 }
コード例 #2
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);
        }