public DialogNotifier(NotifierDialogData data) { InitializeComponent(); DialogData = data.Clone(); Text = DialogData.Title; Font = Utility.Configuration.Config.UI.MainFont; Icon = Resource.ResourceManager.Instance.AppIcon; Padding = new Padding(4); //SetStyle( ControlStyles.UserPaint, true ); //SetStyle( ControlStyles.SupportsTransparentBackColor, true ); ForeColor = DialogData.ForeColor; BackColor = DialogData.BackColor; if (DialogData.DrawsImage && DialogData.Image != null) { ClientSize = DialogData.Image.Size; } if (!DialogData.HasFormBorder) { FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; } data.CloseAll += data_CloseAll; }
public DialogNotifier(NotifierDialogData data) { InitializeComponent(); DialogData = data.Clone(); Text = DialogData.Title; Font = Utility.Configuration.Config.UI.MainFont; Icon = Resource.ResourceManager.Instance.AppIcon; Padding = new Padding(4); SetStyle(ControlStyles.UserPaint, true); SetStyle(ControlStyles.SupportsTransparentBackColor, true); ForeColor = DialogData.ForeColor; BackColor = DialogData.BackColor; }