Ejemplo n.º 1
0
        // ctor
        public DisplayGenres()
        {
            InitializeComponent();

            // instantiate presenter
            prs = new DisplayGenresPresenter(this);
        }
Ejemplo n.º 2
0
        private void ShowDisplayGenresDialog()
        {
            // create dialog
            DisplayGenres nxtview = view.CreateDisplayGenres();

            // set dialog presenter
            DisplayGenresPresenter nxtprs = new DisplayGenresPresenter(nxtview);

            // set dialog positioning
            nxtview.StartPosition = FormStartPosition.CenterParent;

            // hide this view
            view.HideView();

            // child presenter starts dialog
            nxtprs.ShowAsDialog();
        }