WinFormsPopupAlerts/SimplePopupAlertFactory.cs
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
namespace WinFormsPopupAlerts
{
public class SimplePopupAlertFactory : PopupAlertFactory
{
public SimplePopupAlertFactory()
{
}
public SimplePopupAlertFactory(System.ComponentModel.IContainer container)
: base(container)
{
}
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;
}
void alert_MouseDown(object sender, MouseEventArgs e)
后面还有 92 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。