/// <param name="parentFrame"></param> /// <param name="publishingContext"></param> /// <param name="isPage"></param> /// <param name="destinationName"></param> /// <param name="publish">If false, the publishing operation will post as draft</param> public UpdateWeblogProgressForm(IWin32Window parentFrame, IBlogPostPublishingContext publishingContext, bool isPage, string destinationName, bool publish) { InitializeComponent(); this.checkBoxViewPost.Text = Res.Get(StringId.UpdateWeblogViewPost); // reference to parent frame and editing context _parentFrame = parentFrame; _publishingContext = publishingContext; _publish = publish; // look and feel (no form border and theme dervied background color) FormBorderStyle = FormBorderStyle.None; BackColor = ColorizedResources.Instance.FrameGradientLight; // bitmaps for animation progressAnimatedBitmap.Bitmaps = AnimationBitmaps; // initialize controls string entityName = isPage ? Res.Get(StringId.Page) : Res.Get(StringId.Post); Text = FormatFormCaption(entityName, publish); ProgressMessage = _defaultProgressMessage = FormatPublishingToCaption(destinationName, entityName, publish); checkBoxViewPost.Visible = publish; checkBoxViewPost.Checked = PostEditorSettings.ViewPostAfterPublish; // hookup event handlers checkBoxViewPost.CheckedChanged += new EventHandler(checkBoxViewPost_CheckedChanged); }
internal BlogPostReferenceFixer(string html, IBlogPostPublishingContext publishingContext) : base(html) { _uploadContext = publishingContext; _fileUploadWorker = new FileUploadWorker(_uploadContext.BlogPost.Id); _fileReferenceList = SupportingFileReferenceList.CalculateReferencesForPublish(publishingContext.EditingContext); }
public UpdateWeblogAsyncOperation(IBlogClientUIContext uiContext, IBlogPostPublishingContext publishingContext, bool publish) : base(uiContext) { _uiContext = uiContext; _publishingContext = publishingContext; _publish = publish; }
public LocalSupportingFileUploader(IBlogPostPublishingContext publishingContext) { // save references to parameters/post contents _publishingContext = publishingContext; _originalPostContents = _publishingContext.EditingContext.BlogPost.Contents; _blog = new Blog(_publishingContext.EditingContext.BlogId); }