Beispiel #1
0
        public void onThemedLoad(object sender, EventArgs e)
        {
            titleSeperator.SplitterDistance = 25;
            CheckInBounds();

            if (moveCenterScreen)
            {
                this.Location = new Point(GeneralMethods.GetCenterScreen().X - this.Size.Width / 2 - 75, GeneralMethods.GetCenterScreen().Y - this.Size.Height / 2 - 145);
            }
        }
Beispiel #2
0
        public SplashScreen()
        {
            InitializeComponent();

            var splashImg = Properties.Resources.Splash1;

            this.SelectBitmap(splashImg);

            int splash_centerX = splashImg.Width / 2;
            int splash_centerY = splashImg.Height / 2;

            this.Top  = (GeneralMethods.GetCenterScreen().Y) - splash_centerY - 55;
            this.Left = (GeneralMethods.GetCenterScreen().X) - splash_centerX;
        }