public void SetProgress1(string Prefix, double Now, double Target, string Suffix) { FirstLabel.Text = Prefix + Now.ToString() + "/" + Target.ToString() + Suffix; FirstPBar.Value = (((int)(Now * 100.0 / Target)) > 100) ? 100 : ((((int)(Now * 100.0 / Target)) < 0) ? 0 : (int)(Now * 100.0 / Target)); FirstLabel.Invalidate(); FirstPBar.Invalidate(); }
void ReleaseDesignerOutlets() { if (Bcover != null) { Bcover.Dispose(); Bcover = null; } if (Beight != null) { Beight.Dispose(); Beight = null; } if (Bfive != null) { Bfive.Dispose(); Bfive = null; } if (Bfour != null) { Bfour.Dispose(); Bfour = null; } if (Bnine != null) { Bnine.Dispose(); Bnine = null; } if (Bone != null) { Bone.Dispose(); Bone = null; } if (BQuitGame != null) { BQuitGame.Dispose(); BQuitGame = null; } if (Bseven != null) { Bseven.Dispose(); Bseven = null; } if (Bsix != null) { Bsix.Dispose(); Bsix = null; } if (Bthree != null) { Bthree.Dispose(); Bthree = null; } if (Btwo != null) { Btwo.Dispose(); Btwo = null; } if (FirstLabel != null) { FirstLabel.Dispose(); FirstLabel = null; } if (FirstLabel2 != null) { FirstLabel2.Dispose(); FirstLabel2 = null; } if (FirstPiece != null) { FirstPiece.Dispose(); FirstPiece = null; } if (OutputLabel != null) { OutputLabel.Dispose(); OutputLabel = null; } if (PlayView != null) { PlayView.Dispose(); PlayView = null; } if (SecondLabel != null) { SecondLabel.Dispose(); SecondLabel = null; } if (SecondLabel2 != null) { SecondLabel2.Dispose(); SecondLabel2 = null; } if (SecondPiece != null) { SecondPiece.Dispose(); SecondPiece = null; } if (StatusLabel != null) { StatusLabel.Dispose(); StatusLabel = null; } }