/// <summary> /// Инициализация. /// </summary> /// <param name="view">Представление.</param> /// <param name="model">Модель.</param> public void Init(PDFJoinerView view, PDFJoinerModel model) { _view = view; _model = model; SubscribeEvents(); }
static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); PDFJoinerPresenter presenter = new PDFJoinerPresenter(); PDFJoinerModel model = new PDFJoinerModel(); Application.Run(new PDFJoinerView(presenter, model)); }
public PDFJoinerView(PDFJoinerPresenter presenter, PDFJoinerModel model) : this() { presenter.Init(this, model); }