Reconfigure for GIT

This commit is contained in:
2017-03-26 20:00:03 +02:00
commit 00637826ab
8056 changed files with 535977 additions and 0 deletions
@@ -0,0 +1,31 @@
Partial Class AboutInfoCustomizationVC
<System.Diagnostics.DebuggerNonUserCode()> _
Public Sub New(ByVal Container As System.ComponentModel.IContainer)
MyClass.New()
'Required for Windows.Forms Class Composition Designer support
Container.Add(Me)
End Sub
'Component overrides dispose to clean up the component list.
<System.Diagnostics.DebuggerNonUserCode()> _
Protected Overrides Sub Dispose(ByVal disposing As Boolean)
If disposing AndAlso components IsNot Nothing Then
components.Dispose()
End If
MyBase.Dispose(disposing)
End Sub
'Required by the Component Designer
Private components As System.ComponentModel.IContainer
'NOTE: The following procedure is required by the Component Designer
'It can be modified using the Component Designer.
'Do not modify it using the code editor.
<System.Diagnostics.DebuggerStepThrough()> _
Private Sub InitializeComponent()
components = New System.ComponentModel.Container()
End Sub
End Class
@@ -0,0 +1,54 @@
Imports System
Imports System.ComponentModel
Imports System.Collections.Generic
Imports System.Diagnostics
Imports System.Text
Imports DevExpress.ExpressApp
Imports DevExpress.ExpressApp.Actions
Imports DevExpress.Persistent.Base
Imports DevExpress.ExpressApp.SystemModule
Imports DevExpress.Persistent.BaseImpl
Imports DevExpress.Data.Filtering
Public Class AboutInfoCustomizationVC
Inherits DevExpress.ExpressApp.WindowController
Public Sub New()
MyBase.New()
'This call is required by the Component Designer.
InitializeComponent()
RegisterActions(components)
End Sub
Protected Overrides Sub OnActivated()
MyBase.OnActivated()
AboutInfo.Instance.AboutInfoString = GetCustomAboutString()
End Sub
Function GetCustomAboutString() As String
Dim _CustomAboutString As String = ""
Dim _User As User
Dim _Contacts As Contacts
Dim _onew As Xpo.XPObjectSpace = Application.CreateObjectSpace
Dim _PartnerInfo As String = ""
_User = _onew.GetObject(TryCast(SecuritySystem.CurrentUser, User))
If _User IsNot Nothing Then
_Contacts = _onew.FindObject(Of Contacts)(CriteriaOperator.Parse("User=?", _User))
If _Contacts IsNot Nothing Then
_PartnerInfo = _Contacts.Customers.FullName
End If
End If
_CustomAboutString = TryCast(SecuritySystem.CurrentUser, User).FullName & "<br>"
_CustomAboutString += "<b>" & _PartnerInfo & "</b><br><br>"
_CustomAboutString += Application.Model.Application.Description & "<br>"
_CustomAboutString += "Version: " & System.Reflection.Assembly.GetExecutingAssembly.GetName.Version.ToString & "<br>"
_CustomAboutString += "Copyright (C) " & Application.Model.Copyright
Return _CustomAboutString
End Function
End Class
@@ -0,0 +1,32 @@
Partial Class HTMLEditorUserVC
<System.Diagnostics.DebuggerNonUserCode()> _
Public Sub New(ByVal Container As System.ComponentModel.IContainer)
MyClass.New()
'Required for Windows.Forms Class Composition Designer support
Container.Add(Me)
End Sub
'Component overrides dispose to clean up the component list.
<System.Diagnostics.DebuggerNonUserCode()> _
Protected Overrides Sub Dispose(ByVal disposing As Boolean)
If disposing AndAlso components IsNot Nothing Then
components.Dispose()
End If
MyBase.Dispose(disposing)
End Sub
'Required by the Component Designer
Private components As System.ComponentModel.IContainer
'NOTE: The following procedure is required by the Component Designer
'It can be modified using the Component Designer.
'Do not modify it using the code editor.
<System.Diagnostics.DebuggerStepThrough()> _
Private Sub InitializeComponent()
components = New System.ComponentModel.Container()
End Sub
End Class
@@ -0,0 +1,76 @@
Imports System
Imports System.ComponentModel
Imports System.Collections.Generic
Imports System.Diagnostics
Imports System.Text
Imports DevExpress.ExpressApp
Imports DevExpress.ExpressApp.Actions
Imports DevExpress.Persistent.Base
Imports DevExpress.Web.ASPxHtmlEditor
Imports DevExpress.ExpressApp.HtmlPropertyEditor.Web
Imports System.Web.UI.WebControls
Imports System.Web.UI
Imports DevExpress.ExpressApp.Editors
Public Class HTMLEditorUserVC
Inherits DevExpress.ExpressApp.ViewController(Of DetailView)
Private htmlEditors As ArrayList
Public Sub New()
MyBase.New()
htmlEditors = New ArrayList
htmlEditors.Clear()
'This call is required by the Component Designer.
InitializeComponent()
RegisterActions(components)
End Sub
Protected Overrides Sub OnActivated()
MyBase.OnActivated()
Dim fView As DetailView = TryCast(View, DetailView)
If (Not fView Is Nothing) AndAlso (fView.ViewEditMode = ViewEditMode.View) Then
fView.ViewEditMode = ViewEditMode.Edit
End If
End Sub
Protected Overrides Sub OnViewControlsCreated()
MyBase.OnViewControlsCreated()
Dim editor As ASPxHtmlPropertyEditor
Dim htmlEditor As ASPxHtmlEditor
If View.ViewEditMode = Editors.ViewEditMode.Edit Then
For Each editor In View.GetItems(Of ASPxHtmlPropertyEditor)()
If editor.Control IsNot Nothing Then
htmlEditor = TryCast(editor.Control, Table).Rows(0).Cells(1).Controls(0)
If htmlEditor IsNot Nothing Then
htmlEditors.Add(htmlEditor)
End If
End If
Next
AddHandler TryCast(View.Control, Control).PreRender, AddressOf ChangeHtmlEditorWidthController_PreRender
End If
End Sub
Sub ChangeHtmlEditorWidthController_PreRender(sender As Object, e As EventArgs)
Dim htmlEditor As ASPxHtmlEditor
Dim _Toolbar As DevExpress.Web.ASPxHtmlEditor.HtmlEditorToolbar
Dim _ToolbarItem As DevExpress.Web.ASPxHtmlEditor.HtmlEditorToolbarItem
For Each htmlEditor In htmlEditors
htmlEditor.Width = Unit.Percentage(100)
'-- InsertImage tiltása.
For Each _Toolbar In htmlEditor.Toolbars
For Each _ToolbarItem In _Toolbar.Items
If TryCast(_ToolbarItem, ToolbarInsertImageDialogButton) IsNot Nothing Then
_ToolbarItem.Visible = False
End If
If TryCast(_ToolbarItem, ToolbarInsertLinkDialogButton) IsNot Nothing Then
_ToolbarItem.Visible = False
End If
If TryCast(_ToolbarItem, ToolbarUnlinkButton) IsNot Nothing Then
_ToolbarItem.Visible = False
End If
Next
Next
Next
htmlEditors.Clear()
End Sub
End Class