// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for details.

using System.ComponentModel;
using OpenLiveWriter.Controls;

namespace OpenLiveWriter.BlogClient.Detection.DisplayMessages
{
	/// <summary>
	/// Summary description for TempPostPermissionDisplayMessage.
	/// </summary>
	public class TempPostPermissionDisplayMessage : DisplayMessage
	{
		/// <summary>
		/// Required designer variable.
		/// </summary>
		private Container components = null;

		public TempPostPermissionDisplayMessage(IContainer container)
		{
			///
			/// Required for Windows.Forms Class Composition Designer support
			///
			container.Add(this);
			InitializeComponent();

			//
			// 
			//
		}

		public TempPostPermissionDisplayMessage()
		{
			///
			/// Required for Windows.Forms Class Composition Designer support
			///
			InitializeComponent();

			//
			// 
			//
		}

		/// <summary> 
		/// Clean up any resources being used.
		/// </summary>
		protected override void Dispose( bool disposing )
		{
			if( disposing )
			{
				if(components != null)
				{
					components.Dispose();
				}
			}
			base.Dispose( disposing );
		}


		#region Component Designer generated code
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
			// 
			// TempPostPermissionDisplayMessage
			// 
			this.Buttons = System.Windows.Forms.MessageBoxButtons.YesNo;
			this.Text = @"{0} allows you to edit using the visual style of your
weblog. This lets you see what your posts will look like online
while you are editing them. In order to enable this feature, Writer
needs to create and delete a temporary post on your weblog.

Would you like Writer to publish a temporary post to detect your
weblog's style?";
			this.Title = "Allow Writer to Create a Temporary Post?";
			this.Type = OpenLiveWriter.Controls.DisplayMessageType.Question;

		}
		#endregion
	}
}
