1: Imports WindowsLive.Writer.Api
2: Imports System.Windows.Forms
3:
4: <InsertableContentSource("PluginName"), _
5: WriterPlugin("310A4D7F-97F4-4db7-9A4A-DF6E88A4AF3D", _
6: "PluginName", _
7: PublisherUrl:="http://blogs.windowsclient.net/MathieuRoseboom", _
8: Description:="Description", _
9: ImagePath:="Image.png")> _
10: Public Class MyPluginContent
11: Inherits ContentSource
12: ' Methods
13: Public Overrides Function CreateContent(ByVal dialogOwner As IWin32Window, ByRef content As String) As DialogResult
14: Dim frm As New frmMain
15:
16: frm.ShowDialog()
17: If (frm.DialogResult = DialogResult.OK) Then
18: content = form.Code
19: Return DialogResult.OK
20: End If
21: Return DialogResult.Cancel
22: End Function
23: End Class
24:
25: