mirror of
https://github.com/kangyu-california/PersistentWindows.git
synced 2025-05-12 05:25:37 +02:00
1. use event driven detection instead of polling 2. add Dispose() method to free resources
42 lines
1,001 B
C#
42 lines
1,001 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.Data;
|
|
using System.Drawing;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using System.Windows.Forms;
|
|
|
|
namespace Ninjacrab.PersistentWindows.SystrayShell
|
|
{
|
|
public partial class SplashForm : Form
|
|
{
|
|
public SplashForm()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
private void label1_Click(object sender, EventArgs e)
|
|
{
|
|
System.Diagnostics.Process.Start("https://github.com/kangyu-california/PersistentWindows");
|
|
}
|
|
|
|
private void timer1_Tick(object sender, EventArgs e)
|
|
{
|
|
progressBar1.PerformStep();
|
|
}
|
|
|
|
private void SplashForm_Load(object sender, EventArgs e)
|
|
{
|
|
this.label1.Text =
|
|
$@"
|
|
Persistent Windows
|
|
Version {Application.ProductVersion}
|
|
|
|
Author: Min Yong Kim
|
|
Contributors: Kang Yu, Sean Aitken";
|
|
|
|
}
|
|
}
|
|
}
|