コード例 #1
0
        public override PopupAlert CreateAlert(object[] args)
        {
            SimplePopupAlert alert;

            switch (AlertStyle)
            {
            case SimplePopupAlertStyle.System:
                alert = new SystemPopupAlert(args);
                break;

            case SimplePopupAlertStyle.Defualt:
            default:
                alert = new SimplePopupAlert(args);
                break;
            }

            alert.HiddingStyle = HiddingStyle;

            alert.ShowingStyle = ShowingStyle;

            alert.HiddingDelay = HiddingDelay;

            alert.RoundedCornerRadius = RoundedCornerRadius;

            alert.ShowingDuration = ShowingDuration;

            alert.HiddingDuration = HiddingDuration;

            alert.MaximumSize = MaximumSize;

            alert.MinimumSize = MinimumSize;

            alert.Padding = Padding;

            alert.MouseDown += new MouseEventHandler(alert_MouseDown);

            return(alert);
        }
コード例 #2
0
        public override PopupAlert CreateAlert(object[] args)
        {
            SimplePopupAlert alert;
            switch (AlertStyle)
            {
                case SimplePopupAlertStyle.System:
                    alert = new SystemPopupAlert(args);
                    break;
                case SimplePopupAlertStyle.Defualt:
                default:
                    alert = new SimplePopupAlert(args);
                    break;
            }

            alert.HiddingStyle = HiddingStyle;

            alert.ShowingStyle = ShowingStyle;

            alert.HiddingDelay = HiddingDelay;

            alert.RoundedCornerRadius = RoundedCornerRadius;

            alert.ShowingDuration = ShowingDuration;

            alert.HiddingDuration = HiddingDuration;

            alert.MaximumSize = MaximumSize;

            alert.MinimumSize = MinimumSize;

            alert.Padding = Padding;

            alert.MouseDown += new MouseEventHandler(alert_MouseDown);

            return alert;
        }