private bool isPatientsListViewEmpty()
        {
            ViewModelPatientsManager model = this.DataContext as ViewModelPatientsManager;

            if (model == null)
            {
                return(true);
            }
            else if (model.Patients.Count == 0)
            {
                return(true);
            }
            return(false);
        }
        private bool abortActionOnPendingOperatorEdit()
        {
            ViewModelPatientsManager model = this.DataContext as ViewModelPatientsManager;

            bool retValue = false;

            if (model != null)
            {
                retValue = model.VerifyCancelOperatorPendingChanges();
                if (retValue)
                {
                    giveElementFocus(operatorTextBox);
                }
            }

            return(retValue);
        }