コード例 #1
0
 public PostContentEditor(PostEditorMainControl parent) { _parent = parent; }
コード例 #2
0
        protected override Control CreateMainControl()
        {
            // create post editor manin control as appropriate
            if (_initialEditingContext != null)
            {
                _postEditorMainControl = new PostEditorMainControl(this, _initialEditingContext);
            }
            else
            {
                throw new ArgumentException("PostEditorForm was not properly initialized with either a blog post or blog this item");
            }

            InitializeCommands();

            // connect our provider command manager to the BlogPostEditingManager
            _providerButtonManager.Initialize(this, _postEditorMainControl.BlogPostEditingManager);

            // update status bar then subscribe to weblog changed events for future updates
            //UpdateStatusBarBlogInfo();
            //_postEditorMainControl.BlogPostEditingManager.BlogChanged +=new EventHandler(BlogPostEditingManager_BlogChanged);
            //_postEditorMainControl.BlogPostEditingManager.BlogSettingsChanged +=new WeblogSettingsChangedHandler(BlogPostEditingManager_BlogSettingsChanged);

            // return the post editor main control
            return _postEditorMainControl;
        }