Namespace Samples
	Partial Public Class OrderInvoice
		''' <summary>
		''' Required designer variable.
		''' </summary>
		Private components As System.ComponentModel.IContainer = Nothing

		''' <summary>
		''' Clean up any resources being used.
		''' </summary>
		''' <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
		Protected Overrides Sub Dispose(ByVal disposing As Boolean)
			If disposing AndAlso (components IsNot Nothing) Then
				components.Dispose()
			End If
			MyBase.Dispose(disposing)
		End Sub

		#Region "Windows Form Designer generated code"

		''' <summary>
		''' Required method for Designer support - do not modify
		''' the contents of this method with the code editor.
		''' </summary>
		Private Sub InitializeComponent()
			Me.components = New System.ComponentModel.Container()
			Dim resources As New System.ComponentModel.ComponentResourceManager(GetType(OrderInvoice))
			Me.txtSource = New System.Windows.Forms.TextBox()
			Me.txtOutput = New System.Windows.Forms.TextBox()
			Me.btnPreview = New System.Windows.Forms.Button()
			Me.lblIntro = New System.Windows.Forms.Label()
			Me.dt = New ComponentPro.TemplateEngine(Me.components)
			Me.smtpClient = New ComponentPro.Net.Mail.Smtp(Me.components)
			Me.txtSubject = New System.Windows.Forms.TextBox()
			Me.txtSubjectGen = New System.Windows.Forms.TextBox()
			Me.grSubject = New System.Windows.Forms.GroupBox()
			Me.grBody = New System.Windows.Forms.GroupBox()
			Me.grbSmtp = New System.Windows.Forms.GroupBox()
			Me.cbxMethod = New System.Windows.Forms.ComboBox()
			Me.txtUserName = New System.Windows.Forms.TextBox()
			Me.txtPassword = New System.Windows.Forms.TextBox()
			Me.lblPassword = New System.Windows.Forms.Label()
			Me.lblUserName = New System.Windows.Forms.Label()
			Me.txtPort = New System.Windows.Forms.TextBox()
			Me.lblPort = New System.Windows.Forms.Label()
			Me.txtServer = New System.Windows.Forms.TextBox()
			Me.lblServer = New System.Windows.Forms.Label()
			Me.grMail = New System.Windows.Forms.GroupBox()
			Me.txtCC = New System.Windows.Forms.TextBox()
			Me.lblCc = New System.Windows.Forms.Label()
			Me.txtTo = New System.Windows.Forms.TextBox()
			Me.lblTo = New System.Windows.Forms.Label()
			Me.txtFrom = New System.Windows.Forms.TextBox()
			Me.lblFrom = New System.Windows.Forms.Label()
			Me.btnSend = New System.Windows.Forms.Button()
			Me.cbxSec = New System.Windows.Forms.ComboBox()
			Me.grSubject.SuspendLayout()
			Me.grBody.SuspendLayout()
			Me.grbSmtp.SuspendLayout()
			Me.grMail.SuspendLayout()
			Me.SuspendLayout()
			' 
			' txtSource
			' 
			Me.txtSource.Font = New System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, (CByte(0)))
			Me.txtSource.Location = New System.Drawing.Point(8, 15)
			Me.txtSource.Multiline = True
			Me.txtSource.Name = "txtSource"
			Me.txtSource.ScrollBars = System.Windows.Forms.ScrollBars.Both
			Me.txtSource.Size = New System.Drawing.Size(612, 117)
			Me.txtSource.TabIndex = 12
			Me.txtSource.Text = resources.GetString("txtSource.Text")
			' 
			' txtOutput
			' 
			Me.txtOutput.Font = New System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, (CByte(0)))
			Me.txtOutput.Location = New System.Drawing.Point(8, 138)
			Me.txtOutput.Multiline = True
			Me.txtOutput.Name = "txtOutput"
			Me.txtOutput.ReadOnly = True
			Me.txtOutput.ScrollBars = System.Windows.Forms.ScrollBars.Both
			Me.txtOutput.Size = New System.Drawing.Size(612, 118)
			Me.txtOutput.TabIndex = 13
			' 
			' btnPreview
			' 
			Me.btnPreview.Location = New System.Drawing.Point(502, 517)
			Me.btnPreview.Name = "btnPreview"
			Me.btnPreview.Size = New System.Drawing.Size(65, 21)
			Me.btnPreview.TabIndex = 44
			Me.btnPreview.Text = "Preview"
			Me.btnPreview.UseVisualStyleBackColor = True
'			Me.btnPreview.Click += New System.EventHandler(Me.btnPreview_Click)
			' 
			' lblIntro
			' 
			Me.lblIntro.AutoSize = True
			Me.lblIntro.Location = New System.Drawing.Point(7, 8)
			Me.lblIntro.Name = "lblIntro"
			Me.lblIntro.Size = New System.Drawing.Size(629, 65)
			Me.lblIntro.TabIndex = 8
			Me.lblIntro.Text = resources.GetString("lblIntro.Text")
			' 
			' dt
			' 
			Me.dt.RootTemplatePath = Nothing
			' 
			' txtSubject
			' 
			Me.txtSubject.Location = New System.Drawing.Point(8, 15)
			Me.txtSubject.Name = "txtSubject"
			Me.txtSubject.Size = New System.Drawing.Size(612, 20)
			Me.txtSubject.TabIndex = 10
			Me.txtSubject.Text = "Invoice for Order #$OrderId$"
			' 
			' txtSubjectGen
			' 
			Me.txtSubjectGen.Location = New System.Drawing.Point(8, 44)
			Me.txtSubjectGen.Name = "txtSubjectGen"
			Me.txtSubjectGen.ReadOnly = True
			Me.txtSubjectGen.Size = New System.Drawing.Size(612, 20)
			Me.txtSubjectGen.TabIndex = 11
			' 
			' grSubject
			' 
			Me.grSubject.Controls.Add(Me.txtSubject)
			Me.grSubject.Controls.Add(Me.txtSubjectGen)
			Me.grSubject.Location = New System.Drawing.Point(10, 171)
			Me.grSubject.Name = "grSubject"
			Me.grSubject.Size = New System.Drawing.Size(629, 74)
			Me.grSubject.TabIndex = 102
			Me.grSubject.TabStop = False
			Me.grSubject.Text = "Subject"
			' 
			' grBody
			' 
			Me.grBody.Controls.Add(Me.txtOutput)
			Me.grBody.Controls.Add(Me.txtSource)
			Me.grBody.Location = New System.Drawing.Point(10, 247)
			Me.grBody.Name = "grBody"
			Me.grBody.Size = New System.Drawing.Size(629, 264)
			Me.grBody.TabIndex = 103
			Me.grBody.TabStop = False
			Me.grBody.Text = "Body"
			' 
			' grbSmtp
			' 
			Me.grbSmtp.Controls.Add(Me.cbxSec)
			Me.grbSmtp.Controls.Add(Me.cbxMethod)
			Me.grbSmtp.Controls.Add(Me.txtUserName)
			Me.grbSmtp.Controls.Add(Me.txtPassword)
			Me.grbSmtp.Controls.Add(Me.lblPassword)
			Me.grbSmtp.Controls.Add(Me.lblUserName)
			Me.grbSmtp.Controls.Add(Me.txtPort)
			Me.grbSmtp.Controls.Add(Me.lblPort)
			Me.grbSmtp.Controls.Add(Me.txtServer)
			Me.grbSmtp.Controls.Add(Me.lblServer)
			Me.grbSmtp.Location = New System.Drawing.Point(329, 80)
			Me.grbSmtp.Name = "grbSmtp"
			Me.grbSmtp.Size = New System.Drawing.Size(310, 92)
			Me.grbSmtp.TabIndex = 101
			Me.grbSmtp.TabStop = False
			Me.grbSmtp.Text = "Smtp Settings"
			' 
			' cbxMethod
			' 
			Me.cbxMethod.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
			Me.cbxMethod.FormattingEnabled = True
			Me.cbxMethod.Items.AddRange(New Object() { "Auto", "CramMD5", "DigestMD5", "Login", "Ntlm", "Plain"})
			Me.cbxMethod.Location = New System.Drawing.Point(190, 64)
			Me.cbxMethod.Name = "cbxMethod"
			Me.cbxMethod.Size = New System.Drawing.Size(110, 21)
			Me.cbxMethod.TabIndex = 10
			' 
			' txtUserName
			' 
			Me.txtUserName.Location = New System.Drawing.Point(76, 40)
			Me.txtUserName.Name = "txtUserName"
			Me.txtUserName.Size = New System.Drawing.Size(109, 20)
			Me.txtUserName.TabIndex = 6
			' 
			' txtPassword
			' 
			Me.txtPassword.Location = New System.Drawing.Point(76, 64)
			Me.txtPassword.Name = "txtPassword"
			Me.txtPassword.PasswordChar = "*"c
			Me.txtPassword.Size = New System.Drawing.Size(109, 20)
			Me.txtPassword.TabIndex = 8
			' 
			' lblPassword
			' 
			Me.lblPassword.AutoSize = True
			Me.lblPassword.Location = New System.Drawing.Point(8, 66)
			Me.lblPassword.Name = "lblPassword"
			Me.lblPassword.Size = New System.Drawing.Size(56, 13)
			Me.lblPassword.TabIndex = 23
			Me.lblPassword.Text = "Password:"
			' 
			' lblUserName
			' 
			Me.lblUserName.AutoSize = True
			Me.lblUserName.Location = New System.Drawing.Point(8, 42)
			Me.lblUserName.Name = "lblUserName"
			Me.lblUserName.Size = New System.Drawing.Size(58, 13)
			Me.lblUserName.TabIndex = 22
			Me.lblUserName.Text = "Username:"
			' 
			' txtPort
			' 
			Me.txtPort.Location = New System.Drawing.Point(244, 16)
			Me.txtPort.Name = "txtPort"
			Me.txtPort.Size = New System.Drawing.Size(56, 20)
			Me.txtPort.TabIndex = 5
			Me.txtPort.Text = "25"
			' 
			' lblPort
			' 
			Me.lblPort.Location = New System.Drawing.Point(188, 18)
			Me.lblPort.Name = "lblPort"
			Me.lblPort.Size = New System.Drawing.Size(56, 18)
			Me.lblPort.TabIndex = 19
			Me.lblPort.Text = "Smtp Port:"
			' 
			' txtServer
			' 
			Me.txtServer.Location = New System.Drawing.Point(76, 16)
			Me.txtServer.Name = "txtServer"
			Me.txtServer.Size = New System.Drawing.Size(109, 20)
			Me.txtServer.TabIndex = 4
			' 
			' lblServer
			' 
			Me.lblServer.Location = New System.Drawing.Point(8, 18)
			Me.lblServer.Name = "lblServer"
			Me.lblServer.Size = New System.Drawing.Size(82, 18)
			Me.lblServer.TabIndex = 18
			Me.lblServer.Text = "Smtp Server:"
			' 
			' grMail
			' 
			Me.grMail.Controls.Add(Me.txtCC)
			Me.grMail.Controls.Add(Me.lblCc)
			Me.grMail.Controls.Add(Me.txtTo)
			Me.grMail.Controls.Add(Me.lblTo)
			Me.grMail.Controls.Add(Me.txtFrom)
			Me.grMail.Controls.Add(Me.lblFrom)
			Me.grMail.Location = New System.Drawing.Point(10, 80)
			Me.grMail.Name = "grMail"
			Me.grMail.Size = New System.Drawing.Size(315, 92)
			Me.grMail.TabIndex = 100
			Me.grMail.TabStop = False
			Me.grMail.Text = "Mail"
			' 
			' txtCC
			' 
			Me.txtCC.Location = New System.Drawing.Point(74, 63)
			Me.txtCC.Name = "txtCC"
			Me.txtCC.Size = New System.Drawing.Size(233, 20)
			Me.txtCC.TabIndex = 3
			' 
			' lblCc
			' 
			Me.lblCc.AutoSize = True
			Me.lblCc.Location = New System.Drawing.Point(6, 65)
			Me.lblCc.Name = "lblCc"
			Me.lblCc.Size = New System.Drawing.Size(24, 13)
			Me.lblCc.TabIndex = 28
			Me.lblCc.Text = "CC:"
			' 
			' txtTo
			' 
			Me.txtTo.Location = New System.Drawing.Point(74, 38)
			Me.txtTo.Name = "txtTo"
			Me.txtTo.Size = New System.Drawing.Size(233, 20)
			Me.txtTo.TabIndex = 2
			' 
			' lblTo
			' 
			Me.lblTo.AutoSize = True
			Me.lblTo.Location = New System.Drawing.Point(6, 40)
			Me.lblTo.Name = "lblTo"
			Me.lblTo.Size = New System.Drawing.Size(23, 13)
			Me.lblTo.TabIndex = 26
			Me.lblTo.Text = "To:"
			' 
			' txtFrom
			' 
			Me.txtFrom.Location = New System.Drawing.Point(74, 14)
			Me.txtFrom.Name = "txtFrom"
			Me.txtFrom.Size = New System.Drawing.Size(233, 20)
			Me.txtFrom.TabIndex = 1
			' 
			' lblFrom
			' 
			Me.lblFrom.Location = New System.Drawing.Point(6, 16)
			Me.lblFrom.Name = "lblFrom"
			Me.lblFrom.Size = New System.Drawing.Size(82, 18)
			Me.lblFrom.TabIndex = 25
			Me.lblFrom.Text = "From:"
			' 
			' btnSend
			' 
			Me.btnSend.Location = New System.Drawing.Point(573, 517)
			Me.btnSend.Name = "btnSend"
			Me.btnSend.Size = New System.Drawing.Size(66, 21)
			Me.btnSend.TabIndex = 45
			Me.btnSend.Text = "Send"
			Me.btnSend.UseVisualStyleBackColor = True
'			Me.btnSend.Click += New System.EventHandler(Me.btnSend_Click)
			' 
			' cbxSec
			' 
			Me.cbxSec.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
			Me.cbxSec.FormattingEnabled = True
			Me.cbxSec.Items.AddRange(New Object() { "Unsecure", "Implicit", "Explicit"})
			Me.cbxSec.Location = New System.Drawing.Point(190, 39)
			Me.cbxSec.Name = "cbxSec"
			Me.cbxSec.Size = New System.Drawing.Size(110, 21)
			Me.cbxSec.TabIndex = 9
			' 
			' OrderInvoice
			' 
			Me.AcceptButton = Me.btnSend
			Me.AutoScaleDimensions = New System.Drawing.SizeF(6F, 13F)
			Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
			Me.ClientSize = New System.Drawing.Size(648, 547)
			Me.Controls.Add(Me.btnSend)
			Me.Controls.Add(Me.grMail)
			Me.Controls.Add(Me.grbSmtp)
			Me.Controls.Add(Me.grBody)
			Me.Controls.Add(Me.grSubject)
			Me.Controls.Add(Me.lblIntro)
			Me.Controls.Add(Me.btnPreview)
			Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle
			Me.MaximizeBox = False
			Me.Name = "OrderInvoice"
			Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen
			Me.Text = "Mail Merge Demo using Advanced Template Engine and SmtpClient"
			Me.grSubject.ResumeLayout(False)
			Me.grSubject.PerformLayout()
			Me.grBody.ResumeLayout(False)
			Me.grBody.PerformLayout()
			Me.grbSmtp.ResumeLayout(False)
			Me.grbSmtp.PerformLayout()
			Me.grMail.ResumeLayout(False)
			Me.grMail.PerformLayout()
			Me.ResumeLayout(False)
			Me.PerformLayout()

		End Sub

		#End Region

		Private txtSource As System.Windows.Forms.TextBox
		Private txtOutput As System.Windows.Forms.TextBox
		Private WithEvents btnPreview As System.Windows.Forms.Button
		Private lblIntro As System.Windows.Forms.Label
		Private dt As ComponentPro.TemplateEngine
		Private smtpClient As ComponentPro.Net.Mail.Smtp
		Private txtSubject As System.Windows.Forms.TextBox
		Private txtSubjectGen As System.Windows.Forms.TextBox
		Private grSubject As System.Windows.Forms.GroupBox
		Private grBody As System.Windows.Forms.GroupBox
		Private grbSmtp As System.Windows.Forms.GroupBox
		Private cbxMethod As System.Windows.Forms.ComboBox
		Private txtUserName As System.Windows.Forms.TextBox
		Private txtPassword As System.Windows.Forms.TextBox
		Private lblPassword As System.Windows.Forms.Label
		Private lblUserName As System.Windows.Forms.Label
		Private txtPort As System.Windows.Forms.TextBox
		Private lblPort As System.Windows.Forms.Label
		Private txtServer As System.Windows.Forms.TextBox
		Private lblServer As System.Windows.Forms.Label
		Private grMail As System.Windows.Forms.GroupBox
		Private txtTo As System.Windows.Forms.TextBox
		Private lblTo As System.Windows.Forms.Label
		Private txtFrom As System.Windows.Forms.TextBox
		Private lblFrom As System.Windows.Forms.Label
		Private txtCC As System.Windows.Forms.TextBox
		Private lblCc As System.Windows.Forms.Label
		Private WithEvents btnSend As System.Windows.Forms.Button
		Private cbxSec As System.Windows.Forms.ComboBox
	End Class
End Namespace

