コード例 #1
0
        private void homeButton_Click(object sender, EventArgs e)
        {
            activePanel.Height = homeButton.Height;
            activePanel.Top    = homeButton.Top;

            HomeInfoUiController homeInfoUiController = new HomeInfoUiController();

            mainPanel.Controls.Clear();
            homeInfoUiController.Dock = DockStyle.Fill;
            homeInfoUiController.BringToFront();
            homeInfoUiController.Focus();
            mainPanel.Controls.Add(homeInfoUiController);
        }
コード例 #2
0
        public HomeUi()
        {
            InitializeComponent();
            activePanel.Height = homeButton.Height;
            activePanel.Top    = homeButton.Top;

            HomeInfoUiController homeInfoUiController = new HomeInfoUiController();

            mainPanel.Controls.Clear();
            homeInfoUiController.Dock = DockStyle.Fill;
            homeInfoUiController.BringToFront();
            homeInfoUiController.Focus();
            mainPanel.Controls.Add(homeInfoUiController);

            timeLabel.Text = "";
            // timeLabel.Text= DateTime.Now.ToString("hh:mm:ss tt");
        }