/// <summary> /// Добавить новую операцию /// </summary> /// <param name="sender">Объект, пославший сообщение</param> /// <param name="e">Объект, содержащий данные посланного сообщения</param> private void buttonAdd_Click(object sender, EventArgs e) { if (_addNewOperationForm == null || _addNewOperationForm.IsDisposed) { try { var operationInfo = new COperation(_operationWorker.GetNewID(), _hospitalizationInfo.Id, _patientInfo.Id) { HeAnaesthetist = _workersKeeper.GlobalSettings.HeAnaesthetist, SheAnaesthetist = _workersKeeper.GlobalSettings.SheAnaesthetist }; _operationWorker.AddWithoutSaving(operationInfo); _addNewOperationForm = new OperationViewForm(_workersKeeper, _patientInfo, _hospitalizationInfo, operationInfo, this, AddUpdate.Add) { MdiParent = MdiParent }; _addNewOperationForm.Show(); } catch (Exception ex) { MessageBox.ShowDialog("Внутренняя ошибка программы при добавлении новой операции:" + ex.Message, "Ошибка", MessageBoxButtons.OK, MessageBoxIcon.Error); } } else { _addNewOperationForm.Focus(); } }
public SurgeonForm( CWorkersKeeper workersKeeper, OperationViewForm operationViewForm, string objectBoxNameOnForm) { Initialize(workersKeeper); _operationViewForm = operationViewForm; _objectBoxNameOnForm = objectBoxNameOnForm; }
public OperationTypeForm( CWorkersKeeper workersKeeper, OperationViewForm operationViewForm, string selectedOperationTypes) { Initialize(workersKeeper, selectedOperationTypes); _operationViewForm = operationViewForm; }
public ScrubNurseForm(CWorkersKeeper workersKeeper, OperationViewForm operationViewForm) { Initialize(workersKeeper); _operationViewForm = operationViewForm; }
public OrderlyForm(CWorkersKeeper workersKeeper, OperationViewForm operationViewForm) { Initialize(workersKeeper); _operationViewForm = operationViewForm; }