コード例 #1
0
        /**
         * Properties
         **/

        public FormMain()
        {
            InitializeComponent();
            this.lblNaviBar1.Image = UtilImage.ResizeImage(global::ManagerPartient.Properties.Resources.button_menu_2, 120, 34);
            this.lblNaviBar2.Image = UtilImage.ResizeImage(global::ManagerPartient.Properties.Resources.button_menu_1, 120, 34);
            this.lblNaviBar3.Image = UtilImage.ResizeImage(global::ManagerPartient.Properties.Resources.button_menu_1, 120, 34);

            panelHome        = new PanelHome();
            panelListPatient = new PanelListPatient();

            panelHome.DisplayPanelEvent        += new DisplayPanelHander(DisplayPanel);
            panelListPatient.DisplayPanelEvent += new DisplayPanelHander(DisplayPanel);

            panelMain.SuspendLayout();
            panelMain.Controls.Add(panelHome);
            panelMain.Controls.Add(panelListPatient);
            panelMain.ResumeLayout();

            panelHome.Show();
            panelListPatient.Hide();

            panelMain.Name = typeof(PanelHome).Name;
        }
コード例 #2
0
 private void button2_Click(object sender, EventArgs e)
 {
     PanelHome.BringToFront();
 }
コード例 #3
0
 private void PanelNotificationBtnHome_Click(object sender, EventArgs e)
 {
     PanelHome.BringToFront();
 }
コード例 #4
0
 private void pictureBox17_Click(object sender, EventArgs e)
 {
     PanelHome.BringToFront();
 }
コード例 #5
0
 private void PanelPlaceBtnHome_Click(object sender, EventArgs e)
 {
     PanelHome.BringToFront();
 }