mirror of
https://github.com/ckaczor/FloatingStatusWindow.git
synced 2026-01-13 17:22:47 -05:00
25 lines
579 B
C#
25 lines
579 B
C#
using System.Collections.Generic;
|
|
using System.Windows;
|
|
|
|
namespace TestWindow
|
|
{
|
|
public partial class App
|
|
{
|
|
private List<WindowSource> _windowSourceList;
|
|
|
|
protected override void OnStartup(StartupEventArgs e)
|
|
{
|
|
base.OnStartup(e);
|
|
|
|
_windowSourceList = new List<WindowSource> { new WindowSource(), new WindowSource(), new WindowSource() };
|
|
}
|
|
|
|
protected override void OnExit(ExitEventArgs e)
|
|
{
|
|
_windowSourceList.ForEach(ws => ws.Dispose());
|
|
|
|
base.OnExit(e);
|
|
}
|
|
}
|
|
}
|