/// <summary>
 /// Constructor to create the instance of presenter.
 /// </summary>
 /// <param name="nodeView">Node view.</param>
 /// <param name="patientObjectCollection">Collection</param>
 protected PatientNodePresenter(IPatientNodeView nodeView, PatientObjectCollection patientObjectCollection)
 {
     if (nodeView == null)
     {
         ExceptionManager.Throw(new ArgumentNullException("nodeView"));
     }
     _patientNodeView         = nodeView;
     _patientObjectCollection = patientObjectCollection;
     _contexts = new List <PatientContext>();
 }
 /// <summary>
 /// Constructor to create the instance of presenter.
 /// </summary>
 /// <param name="nodeView">Node view.</param>
 /// <param name="patientObjectCollection">Collection</param>
 protected PatientNodePresenter(IPatientNodeView nodeView, PatientObjectCollection patientObjectCollection)
 {
     if (nodeView == null)
     {
         ExceptionManager.Throw(new ArgumentNullException("nodeView"));
     }
     _patientNodeView = nodeView;
     _patientObjectCollection = patientObjectCollection;
     _contexts = new List<PatientContext>();
 }
        /// <summary>
        /// Fills the patient list.
        /// </summary>
        private void FillPatientList()
        {
            _patientsList.Items.Clear();
            PatientObjectCollection patientList = _patientNodePresenter.GetPatientList();

            foreach (var patient in patientList)
            {
                ListViewItem item = new ListViewItem(patient.GUId);
                item.ToolTipText = string.Format("{0}\n{1}", patient.AtPost, patient.Town);
                item.SubItems.Add(string.Format("{0} {1}", patient.Salutation, patient.PatientName));
                item.Tag = patient;
                _patientsList.Items.Add(item);
            }
        }