mirror of
https://github.com/KillzXGaming/Switch-Toolbox
synced 2024-11-27 06:50:23 +00:00
50 lines
996 B
C#
50 lines
996 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 Switch_Toolbox.Library
|
|||
|
{
|
|||
|
public partial class STProgressBar : Form
|
|||
|
{
|
|||
|
public STProgressBar()
|
|||
|
{
|
|||
|
InitializeComponent();
|
|||
|
}
|
|||
|
|
|||
|
public int Value
|
|||
|
{
|
|||
|
set
|
|||
|
{
|
|||
|
progressBar1.Value = value;
|
|||
|
if (value >= 100)
|
|||
|
Close();
|
|||
|
progressBar1.Refresh();
|
|||
|
}
|
|||
|
}
|
|||
|
public string Task
|
|||
|
{
|
|||
|
set
|
|||
|
{
|
|||
|
label1.Text = value;
|
|||
|
label1.Refresh();
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
private void ProgressBar_FormClosed(object sender, FormClosedEventArgs e)
|
|||
|
{
|
|||
|
|
|||
|
}
|
|||
|
|
|||
|
private void ProgressBarWindow_Load(object sender, EventArgs e)
|
|||
|
{
|
|||
|
|
|||
|
}
|
|||
|
}
|
|||
|
}
|