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

            // instantiate presenter
            prs = new DisplayIconsPresenter(this);
        }
Ejemplo n.º 2
0
        private void ShowDisplayIconsDialog()
        {
            // create dialog
            DisplayIcons nxtview = view.CreateDisplayIcons();

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

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

            // hide this view
            view.HideView();

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