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,46 @@
Imports Microsoft.VisualBasic
Imports System
Imports System.Web.UI.WebControls
Imports DevExpress.ExpressApp
Imports DevExpress.ExpressApp.Editors
Imports DevExpress.ExpressApp.Web.Editors
Imports DevExpress.ExpressApp.Model
Imports DevExpress.DashboardWeb
Public Class DashboardViewerPropertyEditor
Inherits WebPropertyEditor
'Private DashboardViewerUserControlCore As DashboardViewerUserControl = Nothing
'Public ReadOnly Property DashboardViewerUserControl() As DashboardViewerUserControl
' Get
' Return DashboardViewerUserControlCore
' End Get
'End Property
Private _ASPxDashboardViewer As ASPxDashboardViewer
ReadOnly Property ASPxDashboardViewer As ASPxDashboardViewer
Get
Return _ASPxDashboardViewer
End Get
End Property
Public Sub New(ByVal objectType As Type, ByVal info As IModelMemberViewItem)
MyBase.New(objectType, info)
End Sub
Protected Overrides Function CreateViewModeControlCore() As WebControl
_ASPxDashboardViewer = New ASPxDashboardViewer
Return _ASPxDashboardViewer
End Function
Protected Overrides Function CreateEditModeControlCore() As WebControl
_ASPxDashboardViewer = New ASPxDashboardViewer
Return _ASPxDashboardViewer
End Function
Protected Overrides Function GetControlValueCore() As Object
Return _ASPxDashboardViewer
End Function
Protected Overrides Sub ReadEditModeValueCore()
End Sub
End Class
@@ -0,0 +1,48 @@
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
Partial Class DashboardViewerUserControl
Inherits DevExpress.XtraEditors.XtraUserControl
'UserControl 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 Windows Form Designer
Private components As System.ComponentModel.IContainer
'NOTE: The following procedure is required by the Windows Form Designer
'It can be modified using the Windows Form Designer.
'Do not modify it using the code editor.
<System.Diagnostics.DebuggerStepThrough()> _
Private Sub InitializeComponent()
Me.components = New System.ComponentModel.Container()
Me.DashboardViewer1 = New DevExpress.DashboardWin.DashboardViewer(Me.components)
CType(Me.DashboardViewer1, System.ComponentModel.ISupportInitialize).BeginInit()
Me.SuspendLayout()
'
'DashboardViewer1
'
Me.DashboardViewer1.Dock = System.Windows.Forms.DockStyle.Fill
Me.DashboardViewer1.Location = New System.Drawing.Point(0, 0)
Me.DashboardViewer1.Name = "DashboardViewer1"
Me.DashboardViewer1.Size = New System.Drawing.Size(543, 586)
Me.DashboardViewer1.TabIndex = 0
'
'DashboardViewerUserControl
'
Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
Me.Controls.Add(Me.DashboardViewer1)
Me.Name = "DashboardViewerUserControl"
Me.Size = New System.Drawing.Size(543, 586)
CType(Me.DashboardViewer1, System.ComponentModel.ISupportInitialize).EndInit()
Me.ResumeLayout(False)
End Sub
Friend WithEvents DashboardViewer1 As DevExpress.DashboardWin.DashboardViewer
End Class
@@ -0,0 +1,120 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>
@@ -0,0 +1,100 @@
Imports DevExpress.DashboardCommon
Imports DevExpress.DataAccess
Imports DevExpress.DataAccess.ConnectionParameters
Imports DevExpress.DataAccess.Sql
Public Class DashboardViewerUserControl
Private _DashboardViewerInfo As String
Private _UserName As String
Private _Password As String
Private _Database As String
Private _SQLServer As String
Private _SQLType As eSQLType
Public ReadOnly Property DashboardViewer() As DevExpress.DashboardWin.DashboardViewer
Get
Return Me.DashboardViewer1
End Get
End Property
Public Property DashboardViewerInfo As String
Get
Return _DashboardViewerInfo
End Get
Set(value As String)
_DashboardViewerInfo = value
End Set
End Property
Public Property UserName As String
Get
Return _UserName
End Get
Set(value As String)
_UserName = value
End Set
End Property
Public Property Password As String
Get
Return _Password
End Get
Set(value As String)
_Password = value
End Set
End Property
Public Property Database As String
Get
Return _Database
End Get
Set(value As String)
_Database = value
End Set
End Property
Property SQLServer As String
Get
Return _SQLServer
End Get
Set(value As String)
_SQLServer = value
End Set
End Property
Public Property SQLType As eSQLType
Get
Return _SQLType
End Get
Set(value As eSQLType)
_SQLType = value
End Set
End Property
Private Sub DashboardViewer1_ConfigureDataConnection(sender As Object, e As ConfigureDataConnectionEventArgs) Handles DashboardViewer1.ConfigureDataConnection
Select Case Me.SQLType.ToString
Case "MySQL"
Dim _ConnectionParameters As New MySqlConnectionParameters
_ConnectionParameters.DatabaseName = Me.Database
_ConnectionParameters.UserName = Me.UserName
_ConnectionParameters.Password = Me.Password
_ConnectionParameters.ServerName = Me.SQLServer
e.ConnectionParameters = _ConnectionParameters
Case "PostgreSQL"
Dim _ConnectionParameters As New PostgreSqlConnectionParameters
_ConnectionParameters.DatabaseName = Me.Database
_ConnectionParameters.UserName = Me.UserName
_ConnectionParameters.Password = Me.Password
_ConnectionParameters.ServerName = Me.SQLServer
e.ConnectionParameters = _ConnectionParameters
Case "MSSQL"
Dim _ConnectionParameters As New MsSqlConnectionParameters
_ConnectionParameters.DatabaseName = Me.Database
_ConnectionParameters.UserName = Me.UserName
_ConnectionParameters.Password = Me.Password
_ConnectionParameters.ServerName = Me.SQLServer
e.ConnectionParameters = _ConnectionParameters
End Select
End Sub
End Class