Skip to content

Commit

Permalink
Update v1.0.9
Browse files Browse the repository at this point in the history
  • Loading branch information
Irval1337 committed Mar 20, 2021
1 parent c60256f commit 29c3973
Show file tree
Hide file tree
Showing 23 changed files with 14 additions and 7 deletions.
1 change: 1 addition & 0 deletions Examples/NotificationExample/Form1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ public Form1()
InitializeComponent();
notify1.MaxTextWidth = 250;
notify1.EnableOffset = false;
notify1.HasHighlighting = false;

notify2.PositionType = NotificationPosition.Right;
notify2.InvertAdding = true;
Expand Down
4 changes: 2 additions & 2 deletions Examples/NotificationExample/NotificationExample.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="NotificationManager, Version=1.0.7.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\NotificationManager.1.0.8\lib\net472\NotificationManager.dll</HintPath>
<Reference Include="NotificationManager, Version=1.0.9.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\NotificationManager.1.0.9\lib\net472\NotificationManager.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
Expand Down
2 changes: 1 addition & 1 deletion Examples/NotificationExample/packages.config
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="NotificationManager" version="1.0.8" targetFramework="net472" />
<package id="NotificationManager" version="1.0.9" targetFramework="net472" />
</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.
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.
Binary file not shown.
Binary file not shown.
Binary file not shown.
5 changes: 5 additions & 0 deletions NotificationLib/NotificationLib/Manager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@ public class Manager
/// </summary>
public int MaxTextWidth = 225;

/// <summary>
/// Если true, то при наведении мыши на кнопку уведомления, она будет подсвечиваться.
/// </summary>
public bool HasHighlighting = true;

/// <summary>
/// Отобразить новое уведомление стандартного типа на экране.
/// </summary>
Expand Down
3 changes: 2 additions & 1 deletion NotificationLib/NotificationLib/NotificationForm.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using NotificationManager.Properties;
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Windows.Forms;

Expand Down Expand Up @@ -98,6 +97,8 @@ public void showAlert(string msg, NotificationType type, Manager notify)
{
manager = notify;
lblMsg.Font = notify.Font;
button1.FlatAppearance.MouseOverBackColor = button1.FlatAppearance.MouseDownBackColor = button1.FlatAppearance.BorderColor
= notify.HasHighlighting ? Color.Empty : button1.BackColor;
this.Opacity = 0.0;
this.StartPosition = FormStartPosition.Manual;
int Count = 1;
Expand Down
6 changes: 3 additions & 3 deletions NotificationLib/NotificationLib/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("NotificationManager")]
[assembly: AssemblyCopyright("Copyright © 2020 Irval1337")]
[assembly: AssemblyCopyright("Copyright © 2021 Irval1337")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

Expand All @@ -32,5 +32,5 @@
// Можно задать все значения или принять номера сборки и редакции по умолчанию
// используя "*", как показано ниже:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.7")]
[assembly: AssemblyFileVersion("1.0.7")]
[assembly: AssemblyVersion("1.0.9")]
[assembly: AssemblyFileVersion("1.0.9")]

0 comments on commit 29c3973

Please sign in to comment.