Calling Editor window for Data Reference

Discussion created by nfilatov on Jun 6, 2011
Latest reply on Jul 11, 2013 by Lonnie Bowling



I try to call Windows Form to edit settings for AF Data Reference, but when I click on Settings button I have that error:


G:: Error
Failed to load 'OSIsoft.AF.Asset.DataReference.OSIsoft.AF.Asset.DataReference.FilterForm' plugin editor: PlugIn 'Aggregate' cannot be created because the PlugIn is missing an appropriate constructor.
>> Constructor on type 'OSIsoft.AF.Asset.DataReference.OSIsoft.AF.Asset.DataReference.FilterForm' not found.


My code is: 

    Public Class Aggregate
        Inherits AFDataReference
        Public Overrides ReadOnly Property EditorType() As Type
                Return GetType(FilterForm)
            End Get
        End Property

    End Class
    Friend Class FilterForm
        Inherits System.Windows.Forms.Form

        Private components As ComponentModel.Container = Nothing

        Public Sub FilterForm(ByVal dataReference As Aggregate, ByVal bReadOnly As Boolean)

        End Sub

        Protected Overrides Sub Dispose(ByVal disposing As Boolean)
            If disposing Then
                If components IsNot Nothing Then
                End If

            End If
        End Sub

    End Class

 I didn't use resource file and I created windows form by designer.


What i need to for working?