示例#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");
        }