private static void ExecuteOpenPost()
 {
     using (OpenPostForm openPostForm = new OpenPostForm())
     {
         if (openPostForm.ShowDialog(Win32WindowImpl.DesktopWin32Window) == DialogResult.OK)
         {
             IBlogPostEditingContext editingContext = openPostForm.BlogPostEditingContext;
             PostEditorForm.Launch(editingContext, true);
         }
     }
 }
        private static void ExecutePostEditorFile(string filename, IDisposable splashScreen)
        {
            if (VerifyPostEditorFileIsEditable(filename))
            {
                // load the contents of the file
                PostEditorFile          postEditorFile = PostEditorFile.GetExisting(new FileInfo(filename));
                IBlogPostEditingContext editingContext = postEditorFile.Load();

                // launch the editing form (request post synchronization)
                PostEditorForm.Launch(editingContext, true, splashScreen);
            }
            else
            {
                if (splashScreen != null)
                {
                    splashScreen.Dispose();
                }
            }
        }
 private static void ExecuteNewPost(IDisposable splashScreen, string switchToBlog)
 {
     PostEditorForm.Launch(switchToBlog, splashScreen);
 }