private void ManualCleanFrm_Load(object sender, EventArgs e) { int x = (System.Windows.Forms.SystemInformation.WorkingArea.Width - this.Size.Width) / 2; int y = (System.Windows.Forms.SystemInformation.WorkingArea.Height - this.Size.Height) / 2; this.StartPosition = FormStartPosition.Manual; //窗体的位置由Location属性决定 myData.myPossition = new Size(x, y); this.Location = (Point)myData.myPossition; //窗体的起始位置为(x,y) DataLabel.Text = myData.MiddleTitle(); TimeLabel.Text = myData.RightTime(); this.BackgroundImage = ((System.Drawing.Image)(Resources.ResourceManager.GetObject("backgroud2"))); this.railsControler = new RailControler(this.eightAngle1.ImgList); this.upArrow.Location = new Point(ManualCleanFrm.UpArrowLeft, ManualCleanFrm.UpArrowTop); this.eightAngle1.ImgOne.BackgroundImage = ((System.Drawing.Image)(Resources.ResourceManager.GetObject(this.angleOne + this.stepZeroGray))); this.eightAngle1.ImgTwo.BackgroundImage = ((System.Drawing.Image)(Resources.ResourceManager.GetObject(this.angleTwo + this.stepZeroGray))); this.eightAngle1.ImgThree.BackgroundImage = ((System.Drawing.Image)(Resources.ResourceManager.GetObject(this.angleThre + this.stepZeroGray))); this.eightAngle1.ImgFour.BackgroundImage = ((System.Drawing.Image)(Resources.ResourceManager.GetObject(this.angleFour + this.stepZeroGray))); }
private void AutoCleanFrm_Load(object sender, EventArgs e) { int x = (System.Windows.Forms.SystemInformation.WorkingArea.Width - this.Size.Width) / 2; int y = (System.Windows.Forms.SystemInformation.WorkingArea.Height - this.Size.Height) / 2; this.StartPosition = FormStartPosition.Manual; //窗体的位置由Location属性决定 myData.myPossition = new Size(x, y); this.Location = (Point)myData.myPossition; //窗体的起始位置为(x,y) DataLabel.Text = myData.MiddleTitle(); TimeLabel.Text = myData.RightTime(); this.timerThread1 = new Thread(new ParameterizedThreadStart(this.Thread1_Tick)); this.timerThread2 = new Thread(new ParameterizedThreadStart(this.Thread2_Tick)); this.timerThread3 = new Thread(new ParameterizedThreadStart(this.Thread3_Tick)); this.timerThread1.IsBackground = true; this.timerThread2.IsBackground = true; this.timerThread3.IsBackground = true; this.process1.BackgroundImage = ((System.Drawing.Image)Resources.ResourceManager.GetObject("stepOne")); this.process2.BackgroundImage = ((System.Drawing.Image)Resources.ResourceManager.GetObject("stepTwo")); this.process3.BackgroundImage = ((System.Drawing.Image)Resources.ResourceManager.GetObject("stepThree")); this.BackgroundImage = ((System.Drawing.Image)(Resources.ResourceManager.GetObject("backgroud2"))); this.railsControler = new RailControler(this.eightAngle1.ImgList); this.InitProcessBar(); this.CurrentCleanStep = CleanSteps.UnSupported; this.eightAngle1.ImgOne.BackgroundImage = ((System.Drawing.Image)(Resources.ResourceManager.GetObject(this.angleOne + this.stepZeroGray))); this.eightAngle1.ImgTwo.BackgroundImage = ((System.Drawing.Image)(Resources.ResourceManager.GetObject(this.angleTwo + this.stepZeroGray))); this.eightAngle1.ImgThree.BackgroundImage = ((System.Drawing.Image)(Resources.ResourceManager.GetObject(this.angleThre + this.stepZeroGray))); this.eightAngle1.ImgFour.BackgroundImage = ((System.Drawing.Image)(Resources.ResourceManager.GetObject(this.angleFour + this.stepZeroGray))); }