- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Data;
- using System.Drawing;
- using System.Text;
- using System.Windows.Forms;
- namespace Supermarket
- {
- public partial class SplashPart : Form
- {
- public SplashPart()
- {
- InitializeComponent();
- }
- private void SplashPart_Load(object sender, EventArgs e)
- {
- timer1.Start();
- }
- private void timer1_Tick(object sender, EventArgs e)
- {
- //int start = 0;
- Progressbar.Value = Progressbar.Value + 4;
- if(Progressbar.Value == 100)
- {
- Progressbar.Value = 0;
- timer1.Stop();
- this.Hide();
- Login log = new Login();
- log.Show();
- }
- }
- }
- }