コード例 #1
0
        public DeskEditorPresenter(IDeskEditorView view)
        {
            if (view == null)
                throw new ArgumentNullException("View can't be null");

            __view = view;
            __desk = new Desk();
        }
コード例 #2
0
        public DeskEditorPresenter(IDeskEditorView view, Desk desk)
        {
            if (view == null)
                throw new ArgumentNullException("View can't be null");

            if (desk == null)
                throw new ArgumentNullException("Desk can't be null");

            __view = view;
            __desk = desk;
        }