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(); }
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; }