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); }
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); }
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); }