this.Topmost = true;
Point ptLeftUp = new Point(0, 0);
Point ptRightDown = new Point(this.ActualWidth, this.ActualHeight);
ptLeftUp = this.PointToScreen(ptLeftUp);
ptRightDown = this.PointToScreen(ptRightDown);
WidthMan = ptRightDown.X - ptLeftUp.X;
HeightMan = ptRightDown.Y - ptLeftUp.Y;
this.IsEnabled = false;
From1 SetTime = new From1();
WindowStartupLocation = WindowStartupLocation.Manual;
WidthMan = (this.ActualWidth) / 2 + ptLeftUp.X - (SetTime.Width) /2;
HeightMan = (this.ActualHeight) / 2 + ptLeftUp.Y-(SetTime.Height)/2;
SetTime.Left = WidthMan;
SetTime.Top = HeightMan;