Пример #1
0
        public SelectDocumentForm(
            ISelectedDocumentForm form,
            bool[] existInfo,
            CPatient patientInfo,
            CHospitalization hospitalization,
            COperationWorker operationWorker,
            CDischargeEpicrisis dischargeEpicrisis,
            CGlobalSettings globalSettings)
        {
            InitializeComponent();

            _patientInfo                   = patientInfo;
            _hospitalization               = hospitalization;
            _operationWorker               = operationWorker;
            _dischargeEpicrisis            = dischargeEpicrisis;
            _globalSettings                = globalSettings;
            _selectedForm                  = form;
            _selectedForm.SelectedDocument = string.Empty;

            if (existInfo.Length != 4)
            {
                throw new ArgumentException("Lenght of existInfo array should be 4");
            }

            _existInfo = new bool[existInfo.Length];
            existInfo.CopyTo(_existInfo, 0);
            _additionalDocumentsFolderPath = Path.Combine(Application.StartupPath, AdditionalDocumentsFolderName);
        }
Пример #2
0
        public SelectCardForm(ISelectedDocumentForm form, bool[] existInfo)
        {
            InitializeComponent();

            _selectedForm = form;
            _selectedForm.SelectedDocument = string.Empty;

            if (existInfo.Length != 9)
            {
                throw new ArgumentException("Длина массива должна быть равна 9");
            }

            _existInfo = new bool[existInfo.Length];
            existInfo.CopyTo(_existInfo, 0);
        }
Пример #3
0
        public SelectAnamneseForm(ISelectedDocumentForm form, bool[] existInfo)
        {
            InitializeComponent();

            _selectedForm = form;
            _selectedForm.SelectedDocument = string.Empty;

            if (existInfo.Length != 2)
            {
                throw new ArgumentException("Lenght of existInfo array should be 2");
            }

            _existInfo = new bool[existInfo.Length];
            existInfo.CopyTo(_existInfo, 0);
        }