diff --git a/Controls.LookupGrid/LookupControl3.vb b/Controls.LookupGrid/LookupControl3.vb index bea6278d..1bc07807 100644 --- a/Controls.LookupGrid/LookupControl3.vb +++ b/Controls.LookupGrid/LookupControl3.vb @@ -30,36 +30,8 @@ Public Class LookupControl3 RepositoryItemLookupControl3.RegisterLookupControl() End Sub - Friend WithEvents fProperties As RepositoryItemGridLookUpEdit - Friend WithEvents fPropertiesView As DevExpress.XtraGrid.Views.Grid.GridView - Public Sub New() End Sub - - Private Sub InitializeComponent() - Me.fProperties = New DevExpress.XtraEditors.Repository.RepositoryItemGridLookUpEdit() - Me.fPropertiesView = New DevExpress.XtraGrid.Views.Grid.GridView() - CType(Me.fProperties, System.ComponentModel.ISupportInitialize).BeginInit() - CType(Me.fPropertiesView, System.ComponentModel.ISupportInitialize).BeginInit() - Me.SuspendLayout() - ' - 'fProperties - ' - Me.fProperties.Buttons.AddRange(New DevExpress.XtraEditors.Controls.EditorButton() {New DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}) - Me.fProperties.Name = "fProperties" - Me.fProperties.PopupView = Me.fPropertiesView - ' - 'fPropertiesView - ' - Me.fPropertiesView.FocusRectStyle = DevExpress.XtraGrid.Views.Grid.DrawFocusRectStyle.RowFocus - Me.fPropertiesView.Name = "fPropertiesView" - Me.fPropertiesView.OptionsSelection.EnableAppearanceFocusedCell = False - Me.fPropertiesView.OptionsView.ShowGroupPanel = False - CType(Me.fProperties, System.ComponentModel.ISupportInitialize).EndInit() - CType(Me.fPropertiesView, System.ComponentModel.ISupportInitialize).EndInit() - Me.ResumeLayout(False) - - End Sub End Class @@ -202,7 +174,11 @@ Public Class RepositoryItemLookupControl3 End Sub Public Overrides Sub CreateDefaultButton() - MyBase.CreateDefaultButton() + If MultiSelect Then + MyBase.CreateDefaultButton() + Buttons.Item(0).Tag = TAG_DROPDOWN + ActionButtonIndex = 0 + End If Dim oLookupFormButtonm = New EditorButton() With { .Kind = ButtonPredefines.Search, @@ -210,10 +186,7 @@ Public Class RepositoryItemLookupControl3 .Width = 20 } - Buttons.Item(0).Tag = TAG_DROPDOWN Buttons.AddRange({oLookupFormButtonm}) - - ActionButtonIndex = 0 End Sub Private Function GetLookupForm() As frmLookupGrid diff --git a/Controls.LookupGrid/Resources/Strings.Designer.vb b/Controls.LookupGrid/Resources/Strings.Designer.vb index 136f8d4b..a88c816a 100644 --- a/Controls.LookupGrid/Resources/Strings.Designer.vb +++ b/Controls.LookupGrid/Resources/Strings.Designer.vb @@ -83,7 +83,7 @@ Namespace My.Resources End Property ''' - ''' Sucht eine lokalisierte Zeichenfolge, die Ein Datensatz ausgewählt ähnelt. + ''' Sucht eine lokalisierte Zeichenfolge, die 1 Datensatz ausgewählt ähnelt. ''' Friend Shared ReadOnly Property LookupControl_OneRecord() As String Get diff --git a/Controls.LookupGrid/Resources/Strings.en.resx b/Controls.LookupGrid/Resources/Strings.en.resx index f9bd92ec..653a4c64 100644 --- a/Controls.LookupGrid/Resources/Strings.en.resx +++ b/Controls.LookupGrid/Resources/Strings.en.resx @@ -124,7 +124,7 @@ {0} records selected - One record selected + 1 record selected Please choose a value: diff --git a/Controls.LookupGrid/Resources/Strings.resx b/Controls.LookupGrid/Resources/Strings.resx index dd5e4f94..093ffed5 100644 --- a/Controls.LookupGrid/Resources/Strings.resx +++ b/Controls.LookupGrid/Resources/Strings.resx @@ -124,7 +124,7 @@ {0} Datensätze ausgewählt - Ein Datensatz ausgewählt + 1 Datensatz ausgewählt Bitte wählen Sie einen Wert aus: diff --git a/Controls.LookupGrid/frmLookupGrid.resx b/Controls.LookupGrid/frmLookupGrid.resx index 4bef9e4c..13d7fb82 100644 --- a/Controls.LookupGrid/frmLookupGrid.resx +++ b/Controls.LookupGrid/frmLookupGrid.resx @@ -117,9 +117,6 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - btnOK - OK (F2) @@ -158,6 +155,9 @@ System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + Panel1 + frmLookupGrid @@ -177,6 +177,10 @@ 1 + + + None + Center @@ -214,6 +218,9 @@ 136, 23 + + viewLookup + Tile @@ -229,9 +236,6 @@ Wählen Sie einen oder mehrere Werte: - - Panel1 - Inherit @@ -251,15 +255,11 @@ 0, 221 - - 6, 13 - - + Panel1 - - - None + + btnOK System.Windows.Forms.Panel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 @@ -273,8 +273,8 @@ - - viewLookup + + 6, 13 12, 6