mirror of
https://github.com/mastercodeon314/KsDumper-11.git
synced 2025-02-17 11:08:40 +01:00
More minor changes
This commit is contained in:
parent
103d604c2c
commit
e958967758
@ -13,10 +13,10 @@ namespace DarkControls.Controls
|
||||
public ProgressBarEx()
|
||||
{
|
||||
this.SetStyle(ControlStyles.UserPaint, true);
|
||||
//_marqueeTimer = new Timer();
|
||||
//_marqueeTimer.Interval = MarqueeAnimationSpeed;
|
||||
//_marqueeTimer.Tick += new EventHandler(marqueeTimer_Tick);
|
||||
//_marqueeTimer.Start();
|
||||
_marqueeTimer = new Timer();
|
||||
_marqueeTimer.Interval = MarqueeAnimationSpeed;
|
||||
_marqueeTimer.Tick += new EventHandler(marqueeTimer_Tick);
|
||||
_marqueeTimer.Start();
|
||||
}
|
||||
|
||||
protected override void OnPaintBackground(PaintEventArgs pevent)
|
||||
@ -36,7 +36,7 @@ namespace DarkControls.Controls
|
||||
int blockWidth = 5;
|
||||
int blockSpacing = 2;
|
||||
int blockCount = (this.Width - 2) / (blockWidth + blockSpacing);
|
||||
int offset = DateTime.Now.Second % (blockCount + blockSpacing);
|
||||
int offset = DateTime.Now.Millisecond % (blockCount + blockSpacing);
|
||||
|
||||
using (Image offscreenImage = new Bitmap(this.Width, this.Height))
|
||||
{
|
||||
|
18
KsDumper11/SplashForm.Designer.cs
generated
18
KsDumper11/SplashForm.Designer.cs
generated
@ -28,19 +28,11 @@
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.progressBar = new DarkControls.Controls.ProgressBarEx();
|
||||
this.statusLbl = new DarkControls.Controls.TransparentLabel();
|
||||
this.progressBar = new DarkControls.Controls.ProgressBarEx();
|
||||
this.transparentLabel1 = new DarkControls.Controls.TransparentLabel();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// progressBar
|
||||
//
|
||||
this.progressBar.Location = new System.Drawing.Point(12, 108);
|
||||
this.progressBar.Name = "progressBar";
|
||||
this.progressBar.Size = new System.Drawing.Size(660, 23);
|
||||
this.progressBar.Style = System.Windows.Forms.ProgressBarStyle.Continuous;
|
||||
this.progressBar.TabIndex = 9;
|
||||
//
|
||||
// statusLbl
|
||||
//
|
||||
this.statusLbl.AutoSize = true;
|
||||
@ -50,6 +42,14 @@
|
||||
this.statusLbl.Size = new System.Drawing.Size(0, 24);
|
||||
this.statusLbl.TabIndex = 10;
|
||||
//
|
||||
// progressBar
|
||||
//
|
||||
this.progressBar.Location = new System.Drawing.Point(12, 108);
|
||||
this.progressBar.MarqueeAnimationSpeed = 750;
|
||||
this.progressBar.Name = "progressBar";
|
||||
this.progressBar.Size = new System.Drawing.Size(660, 23);
|
||||
this.progressBar.TabIndex = 9;
|
||||
//
|
||||
// transparentLabel1
|
||||
//
|
||||
this.transparentLabel1.AutoSize = true;
|
||||
|
@ -103,7 +103,7 @@ namespace KsDumper11
|
||||
|
||||
private void SplashForm_Load(object sender, EventArgs e)
|
||||
{
|
||||
StartProgressBar();
|
||||
//StartProgressBar();
|
||||
Task.Run(() =>
|
||||
{
|
||||
StartDriver();
|
||||
|
Loading…
x
Reference in New Issue
Block a user