예제 #1
0
        private void ShowLoadingScreen()
        {
            m_LoadingPanel = new LoadingPanel();
            m_LoadingPanel.BringToFront();
            int xPos = (Size.Width / 2) - (m_LoadingPanel.Size.Width / 2);
            int yPos = (Size.Height / 2) - (m_LoadingPanel.Size.Height / 2);

            m_LoadingPanel.Location = new Point(xPos, yPos);
            m_LoadingPanel.Anchor   = AnchorStyles.None;
            hideControls();
            Controls.Add(m_LoadingPanel);
        }
예제 #2
0
        private void ShowLoadingScreen()
        {
            Controls.Clear();

            LoadingPanel loadingPanel = new LoadingPanel();
            int          xPos         = (Size.Width / 2) - (loadingPanel.Size.Width / 2);
            int          yPos         = (Size.Height / 2) - (loadingPanel.Size.Height / 2);

            loadingPanel.Location = new Point(xPos, yPos);
            loadingPanel.Anchor   = AnchorStyles.None;

            Controls.Add(loadingPanel);
        }