Exemplo n.º 1
0
        int rand = randNum.Next(0, 4); // 1-4 because there will be 4 quadrants

        #endregion Fields

        #region Constructors

        public Form1()
        {
            InitializeComponent();

            MainScreen ms = new MainScreen();
            ms.Location = new Point((Screen.PrimaryScreen.Bounds.Width - ms.Width) / 2, (Screen.PrimaryScreen.Bounds.Height - ms.Height) / 2);
            this.Controls.Add(ms);
        }
Exemplo n.º 2
0
        public Form1()
        {
            InitializeComponent();

            MainScreen ms = new MainScreen();

            ms.Location = new Point((Screen.PrimaryScreen.Bounds.Width - ms.Width) / 2, (Screen.PrimaryScreen.Bounds.Height - ms.Height) / 2);
            this.Controls.Add(ms);
        }