Esempio n. 1
0
 private void mnuRefresh_Click(object sender, System.EventArgs e)
 {
     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();
     }
 }
Esempio n. 2
0
        private void mnuSolutionStatus_Click(object sender, System.EventArgs e)
        {
            frmSolutionStatus fSol = new frmSolutionStatus();

            fSol.MdiParent = this;
            fSol.Show();
        }
Esempio n. 3
0
        private void frmAutoReport_Load(object sender, System.EventArgs e)
        {
            oWeekly                   = new frmWeekly();
            oWeekly.MdiParent         = this.Owner;
            oAnonCust                 = new frmAnonCust();
            oAnonCust.MdiParent       = this.Owner;
            oAutoMan                  = new frmAutoMan();
            oAutoMan.MdiParent        = this.Owner;
            oSolutionStatus           = new frmSolutionStatus();
            oSolutionStatus.MdiParent = this.Owner;


            timer1.Enabled  = true;
            timer1.Interval = 1000;
        }
Esempio n. 4
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;
            }
        }