Esempio n. 1
0
        public void InterventionSetABCTest()
        {
            Intervention a   = new Intervention();
            ABC          abc = new ABC();

            a.setABC(abc);

            Assert.IsNotNull(a.getABC());
        }
Esempio n. 2
0
        private void BuildComponents()
        {
            timersPage         = new TimersInterventionFormPage(this, intervention);
            detailsPage        = new DetailsInterventionFormPage(this, intervention);
            resourcesPage      = new ResourcesInterventionFormPage(this, intervention);
            abcPage            = new ABCInterventionFormPage(this, intervention.getABC());
            additionalInfoPage = new AdditionalInfoInterventionFormPage(this, intervention);
            endPage            = new EndInterventionFormPage(this, intervention);

            timersFrame         = new Frame();
            timersFrame.Content = timersPage;
            timers.Content      = timersFrame;

            detailsFrame         = new Frame();
            detailsFrame.Content = detailsPage;
            details.Content      = detailsFrame;

            resourcesFrame         = new Frame();
            resourcesFrame.Content = resourcesPage;
            resources.Content      = resourcesFrame;

            abcFrame         = new Frame();
            abcFrame.Content = abcPage;
            abc.Content      = abcFrame;

            additionalInfoFrame         = new Frame();
            additionalInfoFrame.Content = additionalInfoPage;
            additionalInfo.Content      = additionalInfoFrame;

            endFrame         = new Frame();
            endFrame.Content = endPage;
            end.Content      = endFrame;

            teamName.Text = (intervention.getResourceList().Count > 0) ? intervention.getResourceList().ElementAt(0).getTeam().getName() : "";

            if (intervention.IsCompleted())
            {
                DisableForms();
            }
        }