Inheritance: Prizm.Main.Forms.MainChildForm.PrizmForm
Esempio n. 1
0
        private InspectionAddEditXtraForm GetInspectionForm(
            BindingList <PipeTest> tests,
            IList <Inspector> inspectors,
            PipeTestResult row,
            IList <EnumWrapper <PipeTestResultStatus> > statuses)
        {
            if (inspectionForm == null)
            {
                inspectionForm = new InspectionAddEditXtraForm(tests, inspectors, row, statuses);
            }
            else
            {
                inspectionForm.SetupForm(tests, inspectors, row, statuses);
            }

            return(inspectionForm);
        }
        private InspectionAddEditXtraForm GetInspectionForm(
            BindingList<PipeTest> tests,
            IList<Inspector> inspectors,
            PipeTestResult row,
            IList<EnumWrapper<PipeTestResultStatus>> statuses,
            bool isNew,
            List<KeyValuePair<string, object>> listOfInspectors = null)
        {
            if(inspectionForm == null)
            {
                inspectionForm = new InspectionAddEditXtraForm(tests, inspectors, row, statuses, viewModel.PipeTestResults, isNew, viewModel.listOfInspectors);
            }
            else
            {
                inspectionForm.SetupForm(tests, inspectors, row, statuses, viewModel.PipeTestResults, isNew, listOfInspectors);
            }

            return inspectionForm;
        }
        private InspectionAddEditXtraForm GetInspectionForm(
            BindingList<PipeTest> tests,
            IList<Inspector> inspectors,
            PipeTestResult row,
            IList<EnumWrapper<PipeTestResultStatus>> statuses)
        {
            if(inspectionForm == null)
            {
                inspectionForm = new InspectionAddEditXtraForm(tests, inspectors, row, statuses, viewModel.PipeTestResults);
            }
            else
            {
                inspectionForm.SetupForm(tests, inspectors, row, statuses, viewModel.PipeTestResults);
            }

            return inspectionForm;
        }