using DevComponents.DotNetBar.Controls;
|
using DevComponents.DotNetBar;
|
using System.Windows;
|
using System.Drawing;
|
|
namespace PdmAlert
|
{
|
/// <summary>
|
/// MainWindow.xaml 的交互逻辑
|
/// </summary>
|
public partial class MainWindow : Window
|
{
|
public MainWindow()
|
{
|
InitializeComponent();
|
}
|
|
private long _RunningAlertId = 0;
|
private void Button_Click(object sender, RoutedEventArgs e)
|
{
|
eDesktopAlertColor color = eDesktopAlertColor.Default;
|
eAlertPosition position = eAlertPosition.BottomRight;
|
DesktopAlert.Show("123", "\uf005", eSymbolSet.Awesome, Color.Empty, color, position, 10, ++_RunningAlertId, AlertClicked);
|
|
}
|
private void AlertClicked(long alertId)
|
{
|
|
}
|
|
private void Window_Loaded(object sender, RoutedEventArgs e)
|
{
|
var screeWidth = SystemParameters.WorkArea.Width;
|
var sHeight = SystemParameters.WorkArea.Height;
|
|
this.Left = screeWidth - this.Width;
|
this.Top = sHeight - this.Height;
|
}
|
|
private void Hide_Click(object sender, RoutedEventArgs e)
|
{
|
this.Hide();
|
}
|
|
}
|
}
|