Пример #1
0
        private void TicketOrderBtn_Click(object sender, EventArgs e)
        {
            TicketOrderForm TO = new TicketOrderForm();

            ITicketOrderViewRef = TO;
            TO.Owner            = this;
            TicketOrder_Click?.Invoke(this, EventArgs.Empty);
            TO.Show();
        }
Пример #2
0
        public TicketOrderPresenter(ITicketOrderView iTicketOrderView, ITicketOrderFormModel iTicketOrderFormModel)
        {
            if (iTicketOrderView is null)
            {
                throw new ArgumentNullException(String.Format("{0} is null", nameof(iTicketOrderView)));
            }

            if (iTicketOrderFormModel is null)
            {
                throw new ArgumentNullException(String.Format("{0} is null", nameof(iTicketOrderFormModel)));
            }

            this.iTicketOrderView      = iTicketOrderView;
            this.iTicketOrderFormModel = iTicketOrderFormModel;

            iTicketOrderView.TicketOrderFormLoad   += ITicketOrderView_TicketOrderFormLoad;
            iTicketOrderView.SpecializationChoise  += ITicketOrderView_SpecializationChoise;
            iTicketOrderView.DoctorsSheduleCheck   += ITicketOrderView_DoctorsSheduleCheck;
            iTicketOrderView.TicketOrder           += ITicketOrderView_TicketOrder;
            iTicketOrderView.NewSpecializationOpen += ITicketOrderView_NewSpecializationOpen;
        }