Ejemplo n.º 1
0
        private void StatisticsBtn_Click(object sender, EventArgs e)
        {
            ShowStatistics SS = new ShowStatistics();

            IShowStatisticRef = SS;
            Statistics_Click?.Invoke(this, EventArgs.Empty);
            SS.Show();
        }
Ejemplo n.º 2
0
        public ShowStatisticsPresenter(IShowStatistic iShowStatistic, IShowStatisticsModel iShowStatisticsModel)
        {
            if (iShowStatistic is null)
            {
                throw new ArgumentNullException(String.Format("{0} is null", nameof(iShowStatistic)));
            }
            if (iShowStatisticsModel is null)
            {
                throw new ArgumentNullException(String.Format("{0} is null", nameof(iShowStatisticsModel)));
            }

            this.iShowStatistic       = iShowStatistic;
            this.iShowStatisticsModel = iShowStatisticsModel;

            iShowStatistic.ShowStatisticsLoad   += IShowStatistic_ShowStatisticsLoad;
            iShowStatistic.ShowDoctorsStatistic += IShowStatistic_ShowDoctorsStatistic;
            iShowStatistic.MedicalCardOpen      += IShowStatistic_MedicalCardOpen;
            iShowStatistic.DateChange           += IShowStatistic_DateChange;
        }