コード例 #1
0
        /// <summary>
        /// Конструктор
        /// </summary>
        /// <param name="specificView">Спецификация</param>
        /// <param name="deliveryView">Доставка</param>
        /// <param name="payView">Оплата</param>
        public OrderEditView(IOrderPartSpecificView specificView, IOrderPartDeliveryView deliveryView, IOrderPartPayView payView)
        {
            InitializeComponent();

            this._specificView = specificView;
            this._deliveryView = deliveryView;
            this._payView      = payView;

            this.tpSpecific.Controls.Add(specificView as Control);
            this.tpDelivary.Controls.Add(deliveryView as Control);
            this.tpBuy.Controls.Add(payView as Control);

            this.tcMain.SelectedPageChanged += TcMain_SelectedPageChanged;
            this.sbPrevios.Click            += SbPrevios_Click;
            this.sbNext.Click += SbNext_Click;

            this.Controller.SetControllers(specificView.Controller, deliveryView.Controller, payView.Controller);

            TcMain_SelectedPageChanged(tcMain, new TabPageChangedEventArgs(tpSpecific, tpSpecific));

            this.Text          = GuiResource.OrderForm_CaptionCreateOrder;
            this.ShowInTaskbar = false;
            this.MinimizeBox   = false;
        }
コード例 #2
0
 /// <summary>
 /// View для контролера
 /// </summary>
 /// <param name="view">Представление</param>
 public override void SetControllerView(IView view)
 {
     _orderDeliveryView = (IOrderPartDeliveryView)view;
 }