Example #1
0
        private void mnuExport_Click(object sender, System.EventArgs e)
        {
            frmExport fExp = new frmExport();

            fExp.ShowDialog(this);
        }
Example #2
0
        private void toolBar1_ButtonClick(object sender, System.Windows.Forms.ToolBarButtonClickEventArgs e)
        {
            switch (toolBar1.Buttons.IndexOf(e.Button))
            {
            case 0:
                frmAnonCust fAnon = new frmAnonCust();
                fAnon.MdiParent = this;
                fAnon.Show();
                break;

            case 1:
                frmAutoMan fAuto = new frmAutoMan();
                fAuto.MdiParent = this;
                fAuto.Show();
                break;

            case 5:
                frmDaily fDaily = new frmDaily();
                fDaily.MdiParent = this;
                fDaily.Show();
                break;

            case 2:
                frmSolutionStatus fSol = new frmSolutionStatus();
                fSol.MdiParent = this;
                fSol.Show();
                break;

            case 3:
                frmWeekly fWeekly = new frmWeekly();
                fWeekly.MdiParent = this;
                fWeekly.Show();
                break;

            case 7:
                frmExport fExp = new frmExport();
                fExp.ShowDialog(this);
                break;

            case 9:
                frmLocation fLoc = new frmLocation();
                fLoc.ShowDialog(this);
                break;

            case 16:
                frmAbout fAbout = new frmAbout();
                fAbout.ShowDialog(this);
                break;

            case 13:
                OneTouch();
                break;

            case 11:
                if (this.ActiveMdiChild.Name == "frmWeekly")
                {
                    frmWeekly oWeekly = (frmWeekly)this.ActiveMdiChild;
                    oWeekly.GetData();
                }
                else if (this.ActiveMdiChild.Name == "frmDaily")
                {
                    frmDaily oDaily = (frmDaily)this.ActiveMdiChild;
                    oDaily.GetData();
                }
                else if (this.ActiveMdiChild.Name == "frmAnonCust")
                {
                    frmAnonCust oAnonCust = (frmAnonCust)this.ActiveMdiChild;
                    oAnonCust.GetData();
                }
                else if (this.ActiveMdiChild.Name == "frmAutoMan")
                {
                    frmAutoMan oAutoMan = (frmAutoMan)this.ActiveMdiChild;
                    oAutoMan.GetData();
                }
                else if (this.ActiveMdiChild.Name == "frmSolutionStatus")
                {
                    frmSolutionStatus oSolutionStatus = (frmSolutionStatus)this.ActiveMdiChild;
                    oSolutionStatus.GetData();
                }
                break;
            }
        }