Ejemplo n.º 1
0
        private void backgroundWorker1_DoWork(object sender, DoWorkEventArgs e)
        {
            switch (opening)
            {
            case 0:
            {
                openForms[0] = FormNewConnection.Create(authLevel);
                break;
            }

            case 1:
            {
                openForms[1] = Billing.Create(authLevel, loginDetails[0]);
                break;
            }

            case 2:
            {
                openForms[2] = HelpDesk.Create(authLevel, loginDetails[0]);
                break;
            }

            case 3:
            {
                openForms[3] = Maintenance.Create(authLevel);
                break;
            }

            case 4:
            {
                openForms[4] = FormWastage.Create();
                break;
            }

            default:
            {
                break;
            }
            }
        }
 public IHttpActionResult Get()
 {
     return(Ok(Billing.Create()));
 }