Skip to content

Commit 16bf0b1

Browse files
committed
Update v1.0.7
1 parent 6cf3db0 commit 16bf0b1

27 files changed

+298
-126
lines changed

Examples/NotificationExample/Form1.cs

Lines changed: 22 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,45 +7,56 @@ namespace NotificationExample
77
{
88
public partial class Form1 : Form
99
{
10-
Manager notify;
10+
Manager notify1 = new Manager();
11+
Manager notify2 = new Manager();
12+
Manager notify3 = new Manager();
13+
Manager notify4 = new Manager();
1114

1215
public Form1()
1316
{
1417
InitializeComponent();
15-
notify = new Manager();
16-
notify.MaxCount = 10;
18+
19+
notify2.PositionType = NotificationPosition.Left;
20+
21+
notify3.PositionType = NotificationPosition.Middle;
22+
23+
notify4.PositionType = NotificationPosition.Middle;
24+
notify4.TimerInterval = 20;
1725
}
1826

1927
private void button1_Click(object sender, EventArgs e)
2028
{
21-
notify.Alert("Success", NotificationType.Success);
29+
notify1.Alert("Success", NotificationType.Success);
2230
}
2331

2432
private void button2_Click(object sender, EventArgs e)
2533
{
26-
notify.CloseAll();
34+
notify1.CloseAll();
35+
notify2.CloseAll();
36+
notify3.CloseAll();
37+
notify4.CloseAll();
2738
}
2839

2940
private void button3_Click(object sender, EventArgs e)
3041
{
31-
notify.Alert("Error", NotificationType.Error);
42+
notify2.Alert("Error", NotificationType.Error);
3243
}
3344

3445
private void button4_Click(object sender, EventArgs e)
3546
{
36-
notify.Alert("Warning", NotificationType.Warning);
47+
notify3.Alert("Warning", NotificationType.Warning);
3748
}
3849

3950
private void button5_Click(object sender, EventArgs e)
4051
{
41-
notify.Alert("Info", NotificationType.Info);
52+
notify4.Alert("Info", NotificationType.Info);
4253
}
4354

4455
private void button6_Click(object sender, EventArgs e)
4556
{
46-
notify.Alert("С наступающим!", NotificationType.Custom, Color.FromArgb(255, 21, 29, 33), Properties.Resources.logo);
47-
notify.StopTimer(1000);
48-
notify.Alert("Happy New Year!", NotificationType.Custom, Color.FromArgb(255, 21, 29, 33), Properties.Resources.logo);
57+
notify1.Alert("С наступающим!", NotificationType.Custom, Color.FromArgb(255, 21, 29, 33), Properties.Resources.logo);
58+
notify1.StopTimer(1000);
59+
notify1.Alert("Happy New Year!", NotificationType.Custom, Color.FromArgb(255, 21, 29, 33), Properties.Resources.logo);
4960
}
5061
}
5162
}

Examples/NotificationExample/NotificationExample.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@
3333
<WarningLevel>4</WarningLevel>
3434
</PropertyGroup>
3535
<ItemGroup>
36-
<Reference Include="NotificationManager, Version=1.0.4.0, Culture=neutral, processorArchitecture=MSIL">
37-
<HintPath>..\packages\NotificationManager.1.0.6\lib\net472\NotificationManager.dll</HintPath>
36+
<Reference Include="NotificationManager, Version=1.0.7.0, Culture=neutral, processorArchitecture=MSIL">
37+
<HintPath>..\packages\NotificationManager.1.0.7\lib\net472\NotificationManager.dll</HintPath>
3838
</Reference>
3939
<Reference Include="System" />
4040
<Reference Include="System.Core" />
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<packages>
3-
<package id="NotificationManager" version="1.0.6" targetFramework="net472" />
3+
<package id="NotificationManager" version="1.0.7" targetFramework="net472" />
44
</packages>
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)