This commit is contained in:
Stephan Maier
2024-08-27 08:10:27 +02:00
parent eb5c2fa502
commit 647f938eee
617 changed files with 73086 additions and 7137 deletions

View File

@@ -0,0 +1,53 @@
/*
* Created/modified in 2011 by Simon Baer
*
* Licensed under the Code Project Open License (CPOL).
*/
using System;
using System.Drawing;
using System.Windows.Forms;
namespace DemoApp
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void btnShow_Click(object sender, EventArgs e)
{
popupNotifier1.TitleText = txtTitle.Text;
popupNotifier1.ContentText = txtText.Text;
popupNotifier1.ShowCloseButton = chkClose.Checked;
popupNotifier1.ShowOptionsButton = chkMenu.Checked;
popupNotifier1.ShowGrip = chkGrip.Checked;
popupNotifier1.Delay = int.Parse(txtDelay.Text);
popupNotifier1.AnimationInterval = int.Parse(txtInterval.Text);
popupNotifier1.AnimationDuration = int.Parse(txtAnimationDuration.Text);
popupNotifier1.TitlePadding = new Padding(int.Parse(txtPaddingTitle.Text));
popupNotifier1.ContentPadding = new Padding(int.Parse(txtPaddingContent.Text));
popupNotifier1.ImagePadding = new Padding(int.Parse(txtPaddingIcon.Text));
popupNotifier1.Scroll = chkScroll.Checked;
popupNotifier1.IsRightToLeft = chkIsRightToLeft.Checked;
if (chkIcon.Checked)
{
popupNotifier1.Image = Properties.Resources._157_GetPermission_48x48_72;
}
else
{
popupNotifier1.Image = null;
}
popupNotifier1.Popup();
}
private void btnExit_Click(object sender, EventArgs e)
{
this.Close();
Application.Exit();
}
}
}