Ejemplo 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();
     }
 }
Ejemplo n.º 2
0
        private void timer1_Tick(object sender, System.EventArgs e)
        {
            timer1.Interval = 15000;
            if (oWeekly.HasProcessed == false && oWeekly.StillProcessing == false)
            {
                oWeekly.Show();
                oWeekly.GetData();
                lblNotification.Text = "Processing Weekly Solution Information";
            }

            if (oWeekly.HasProcessed == true && oWeekly.StillProcessing == false)
            {
                if (oAnonCust.HasProcessed == false && oAnonCust.StillProcessing == false)
                {
                    oAnonCust.Show();
                    oAnonCust.GetData();
                    lblNotification.Text = "Processing Anon vs Customer Information";
                }
            }
            if (oWeekly.HasProcessed == true && oWeekly.StillProcessing == false)
            {
                if (oAnonCust.HasProcessed == true && oAnonCust.StillProcessing == false)
                {
                    if (oAutoMan.HasProcessed == false && oAutoMan.StillProcessing == false)
                    {
                        oAutoMan.Show();
                        oAutoMan.GetData();
                        lblNotification.Text = "Processing Auto Manual Upload Information";
                    }
                }
            }

            if (oWeekly.HasProcessed == true && oWeekly.StillProcessing == false)
            {
                if (oAnonCust.HasProcessed == true && oAnonCust.StillProcessing == false)
                {
                    if (oAutoMan.HasProcessed == true && oAutoMan.StillProcessing == false)
                    {
                        if (oSolutionStatus.HasProcessed == false && oSolutionStatus.StillProcessing == false)
                        {
                            oSolutionStatus.Show();
                            oSolutionStatus.GetData();
                            lblNotification.Text = "Processing Solution Status Information";
                        }
                    }
                }
            }
            if (oWeekly.HasProcessed == true && oWeekly.StillProcessing == false)
            {
                if (oAnonCust.HasProcessed == true && oAnonCust.StillProcessing == false)
                {
                    if (oAutoMan.HasProcessed == true && oAutoMan.StillProcessing == false)
                    {
                        if (oSolutionStatus.HasProcessed == true && oSolutionStatus.StillProcessing == false)
                        {
                            timer1.Enabled       = false;
                            lblNotification.Text = "Completed Processing";
                        }
                    }
                }
            }
        }
Ejemplo n.º 3
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;
            }
        }