Пример #1
0
        public BaseMdiChildView(IView owner)
        {
            InitializeComponent();

            //this is call whenever the form closes, either after 'x' or when CloseView is called from
            //the presenter
            FormClosed += (o, e) =>
            {
                Hide();
                _presenter.OnFormClosed();
                Release();
            };
            MdiParent = owner as Form;
        }
        public BaseMdiChildView(IView owner)
        {
            InitializeComponent();
            ApplicationIcon = ApplicationIcons.DefaultIcon;

            //this is call whenever the form closes, either after 'x' or when CloseView is called from
            //the presenter
            FormClosed += (o, e) =>
            {
                Hide();
                _presenter.OnFormClosed();
                Release();
            };

            Icon      = ApplicationIcon.WithSize(IconSizes.Size16x16);
            MdiParent = owner as Form;
        }