Пример #1
0
        private bool GetEvents(string id)
        {
            bool   isSuccess = false;
            string error     = string.Empty;

            List <Events> lst = FunctionalityFromRepository.GetAllEvents(id, ref SimID, ref error);

            if (string.IsNullOrWhiteSpace(error))
            {
                isSuccess = true;
                LoadEvent(lst);
            }
            else
            {
                MessageBox.Show(error);
            }
            return(isSuccess);
        }