53 lines
1.2 KiB
C#
53 lines
1.2 KiB
C#
using OnDoc.Klassen;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.Data;
|
|
using System.Drawing;
|
|
using System.Linq;
|
|
using System.Runtime.InteropServices;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using System.Windows.Forms;
|
|
|
|
namespace OnDoc.Diverses
|
|
{
|
|
public partial class SplashScreen : Form
|
|
{
|
|
Timer tmr;
|
|
public SplashScreen()
|
|
{
|
|
InitializeComponent();
|
|
this.label1.Left = 1;
|
|
this.label1.Width = this.Width;
|
|
this.label2.Left = 1;
|
|
this.label2.Width = this.Width;
|
|
label1.Text = "Version " + AppParams.assemblyversion;
|
|
Application.DoEvents();
|
|
|
|
}
|
|
|
|
private void SplashScreen_Shown(object sender, EventArgs e)
|
|
{
|
|
tmr = new Timer();
|
|
tmr.Interval = 5000;
|
|
tmr.Start();
|
|
Application.DoEvents();
|
|
tmr.Tick += tmr_Tick;
|
|
}
|
|
|
|
void tmr_Tick(object sender, EventArgs e)
|
|
|
|
{
|
|
Application.DoEvents();
|
|
tmr.Stop();
|
|
this.Hide();
|
|
}
|
|
|
|
private void label2_Click(object sender, EventArgs e)
|
|
{
|
|
|
|
}
|
|
}
|
|
}
|