Esempio n. 1
0
        private void mainMenu_Click(object sender, OutlookStyleControls.OutlookBar.ButtonClickEventArgs e)
        {
            int idx = mainMenu.Buttons.IndexOf(e.SelectedButton);
            switch (idx)
            {
                case 0: // home
                    //ShowPanes("show contacts options here", "show sheet with contacts here");
                    if (m_frmCurrentForm != null)
                    {
                        m_frmCurrentForm.Close();
                        this.panelMain.Panel2.Controls.Clear();
                        System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmGSMMain));
                        this.panelMain.Panel2.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("panelMain.Panel2.BackgroundImage")));
                    }
                    break;
                case 1: // quan ly kho
                    showFrom(new frmSGMStore());
                    break;
                case 2: // quan ly tram xang
                    showFrom(new frmGasStation());
                    break;
                case 3: // quan ly khach hang
                    showFrom(new frmSGMCustomer());
                    break;
                case 4: // cap nhat gia xang
                    showFrom(new frmSGMUpdatePrice());
                    break;
                case 5: // bao cao
                    showFrom(new frmSGMReport(this));
                    break;
                case 6: // tai khoan
                    showFrom(new frmSGMUpdateAccount());
                    break;
                case 7: // cau hinh
                    showFrom(new frmSGMConfig());
                    break;
                case 8: // thoat
                    this.Close();
                    break;

                default:
                    break;
            }
        }
Esempio n. 2
0
 private void mainMenu_Click_1(object sender, OutlookStyleControls.OutlookBar.ButtonClickEventArgs e)
 {
 }