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,27 @@
Imports Microsoft.VisualBasic
Imports System
Imports DevExpress.ExpressApp.Win.Editors
Imports DevExpress.ExpressApp.Model
Imports DevExpress.ExpressApp.Editors
<PropertyEditor(GetType([String]), False)> _
Public Class DashboardDesignerPropertyEditor
Inherits WinPropertyEditor
Public Sub New(ByVal objectType As Type, ByVal info As IModelMemberViewItem)
MyBase.New(objectType, info)
ControlBindingProperty = "DashboardDesignerInfo"
End Sub
Private DashboardDesignerUserControlCore As DashboardDesignerUserControl = Nothing
Public ReadOnly Property DashboardDesignerUserControl() As DashboardDesignerUserControl
Get
Return DashboardDesignerUserControlCore
End Get
End Property
Protected Overrides Function CreateControlCore() As Object
DashboardDesignerUserControlCore = New DashboardDesignerUserControl()
Return DashboardDesignerUserControlCore
End Function
Protected Overrides Sub OnAllowEditChanged()
MyBase.OnAllowEditChanged()
End Sub
End Class
File diff suppressed because one or more lines are too long
@@ -0,0 +1,101 @@
Imports DevExpress.DataAccess
Imports DevExpress.DataAccess.ConnectionParameters
Imports DevExpress.DataAccess.Sql
Public Class DashboardDesignerUserControl
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 DashboardDesigner() As DevExpress.DashboardWin.DashboardDesigner
Get
Return Me.DashboardDesigner1
End Get
End Property
Public ReadOnly Property BarManger As DevExpress.XtraBars.BarManager
Get
Return BarManager1
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 DashboardDesigner1_ConfigureDataConnection(sender As Object, e As ConfigureDataConnectionEventArgs) Handles DashboardDesigner1.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
@@ -0,0 +1,24 @@
Imports Microsoft.VisualBasic
Imports System
Imports DevExpress.ExpressApp.Win.Editors
Imports DevExpress.ExpressApp.Model
Public Class DashboardViewerPropertyEditor
Inherits WinPropertyEditor
Public Sub New(ByVal objectType As Type, ByVal info As IModelMemberViewItem)
MyBase.New(objectType, info)
ControlBindingProperty = "DashboardViewerInfo"
End Sub
Private DashboardViewerUserControlCore As DashboardViewerUserControl = Nothing
Public ReadOnly Property DashboardViewerUserControl() As DashboardViewerUserControl
Get
Return DashboardViewerUserControlCore
End Get
End Property
Protected Overrides Function CreateControlCore() As Object
DashboardViewerUserControlCore = New DashboardViewerUserControl()
Return DashboardViewerUserControlCore
End Function
Protected Overrides Sub OnAllowEditChanged()
MyBase.OnAllowEditChanged()
End Sub
End Class
@@ -0,0 +1,51 @@
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
Partial Class DashboardViewerUserControl
Inherits System.Windows.Forms.UserControl
'UserControl overrides dispose to clean up the component list.
<System.Diagnostics.DebuggerNonUserCode()> _
Protected Overrides Sub Dispose(ByVal disposing As Boolean)
Try
If disposing AndAlso components IsNot Nothing Then
components.Dispose()
End If
Finally
MyBase.Dispose(disposing)
End Try
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(922, 715)
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(922, 715)
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,99 @@
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