Skip to content

Commit

Permalink
Merge pull request #42 from experdb/development
Browse files Browse the repository at this point in the history
  • Loading branch information
kayform authored Oct 1, 2019
2 parents 2dcaebb + b4e5651 commit d79cacf
Show file tree
Hide file tree
Showing 58 changed files with 14,522 additions and 16,275 deletions.
37 changes: 33 additions & 4 deletions eXperDB_Monitoring_Client/iDast.Controls/Raider/Raider.vb
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,23 @@ Public Class Raider
End Property
#End Region

#Region "DisplayID"
Private _DisplayID As Integer = 0

<Category("DisplayID")> _
Property DisplayID As Integer
Get
Return _DisplayID
End Get
Set(value As Integer)
If Not _DisplayID.Equals(value) Then
_DisplayID = value
Me.Invalidate()
End If
End Set
End Property
#End Region

#Region "Initialize"

Public Sub New()
Expand Down Expand Up @@ -482,13 +499,14 @@ Public Class Raider

'Dim txtPt As New Point(BaseRect.Left + BaseRect.Width / 2, BaseRect.Top + BaseRect.Height * 1 / 5)
'Dim txtPt As New Point(BaseRect.Left + BaseRect.Width / 2, BaseRect.Top + BaseRect.Height * 1 / 9)
Dim imgPt As New Point(BaseRect.Left + BaseRect.Width / 2, BaseRect.Top + BaseRect.Height / 24)
Dim txtPt As Point
If i = 0 Then
txtPt = New Point(BaseRect.Left + BaseRect.Width / 2, BaseRect.Top + BaseRect.Height * 1 / 24)
txtPt = New Point(BaseRect.Left + BaseRect.Width / 3, BaseRect.Top + BaseRect.Height * 1 / 24)
ElseIf i = (RaiderItems.Count / 2 - 1) Then
txtPt = New Point(BaseRect.Left + BaseRect.Width / 2, BaseRect.Top + BaseRect.Height * 1 / 8)
txtPt = New Point(BaseRect.Left + BaseRect.Width / 3, BaseRect.Top + BaseRect.Height * 1 / 8)
Else
txtPt = New Point(BaseRect.Left + BaseRect.Width / 2, BaseRect.Top + BaseRect.Height * 1 / 12)
txtPt = New Point(BaseRect.Left + BaseRect.Width / 3, BaseRect.Top + BaseRect.Height * 1 / 12)
End If
Dim CentPt As New Point(BaseRect.Left + BaseRect.Width / 2, BaseRect.Top + BaseRect.Height / 2)
pGr.DrawRectangle(New Pen(Brushes.Green), New Rectangle(CentPt.X, CentPt.Y, 2, 2))
Expand All @@ -497,8 +515,19 @@ Public Class Raider
txtPt = New Point(dblCos * (txtPt.X - CentPt.X) - dblSin * (txtPt.Y - CentPt.Y) + CentPt.X, _
dblSin * (txtPt.X - CentPt.X) + dblCos * (txtPt.Y - CentPt.Y) + CentPt.Y)
txtPt.Offset(-1 * (pGr.MeasureString(ptItm.Text, MyBase.Font).Width) / 2, 0)
imgPt = New Point(dblCos * (imgPt.X - CentPt.X) - dblSin * (imgPt.Y - CentPt.Y) + CentPt.X - ptItm.Image.Width / 2, _
dblSin * (imgPt.X - CentPt.X) + dblCos * (imgPt.Y - CentPt.Y) + CentPt.Y - ptItm.Image.Height / 2)

pGr.DrawString(ptItm.Text, MyBase.Font, New SolidBrush(MyBase.ForeColor), txtPt)
'pGr.DrawString(ptItm.Text, MyBase.Font, New SolidBrush(MyBase.ForeColor), txtPt)
If DisplayID Then
If ptItm.Image IsNot Nothing Then
pGr.DrawImage(ptItm.Image, imgPt)
Else
pGr.DrawString(ptItm.Text, MyBase.Font, New SolidBrush(MyBase.ForeColor), txtPt)
End If
Else
pGr.DrawString(ptItm.Text, MyBase.Font, New SolidBrush(MyBase.ForeColor), txtPt)
End If
Next
End Sub

Expand Down
14 changes: 14 additions & 0 deletions eXperDB_Monitoring_Client/iDast.Controls/Raider/Raideritem.vb
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,20 @@ Public Class RaiderItem
End Set
End Property

Private _Image As Image = Nothing
Property Image As Image
Get
Return _Image
End Get
Set(value As Image)
If _Image Is Nothing Then
_Image = value
If Me._parent IsNot Nothing Then Me._parent.Invalidate()
End If

End Set
End Property

Private _Name As String = Nothing

Property Name As String
Expand Down
11 changes: 11 additions & 0 deletions eXperDB_Monitoring_Client/iDast.Controls/Raider/itemsCollection.vb
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,17 @@
Return NewRaideritem
End Function

Public Function Add(ByVal Name As String, ByVal Text As String, ByVal Image As Image) As RaiderItem
Dim NewRaideritem As New RaiderItem
NewRaideritem.Name = Name
NewRaideritem.Text = Text
NewRaideritem.Image = Image
SyncLock Me.List.SyncRoot
Me.List.Add(NewRaideritem)
End SyncLock
Return NewRaideritem
End Function

Public Sub AddRange(ByVal items() As RaiderItem)
If items IsNot Nothing Then
SyncLock Me.List.SyncRoot
Expand Down
387 changes: 387 additions & 0 deletions eXperDB_Monitoring_Client/iDast.MonPostgres/AlertConfig.Designer.vb

Large diffs are not rendered by default.

206 changes: 206 additions & 0 deletions eXperDB_Monitoring_Client/iDast.MonPostgres/AlertConfig.resx
Original file line number Diff line number Diff line change
@@ -0,0 +1,206 @@
<?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>
<metadata name="ttChart.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<metadata name="coldgvHostName.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="coldgvAliasNm.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="coldgvIP.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="coldgvHARole.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="coldgvHAHost.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="dbmsImgLst.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>114, 19</value>
</metadata>
<data name="dbmsImgLst.ImageStream" mimetype="application/x-microsoft.net.object.binary.base64">
<value>
AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w
LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0
ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAACo
DAAAAk1TRnQBSQFMAgEBAgEAAXABAQFwAQEBEAEAARABAAT/ASEBAAj/AUIBTQE2BwABNgMAASgDAAFA
AwABEAMAAQEBAAEgBgABECEAAQEDCAELAw8BFAMQARYDEAEWAxABFgMQARYDEAEWAw0BEQMEAQUYAAMG
AQgDJgE5AysBQwMrAUMDKwFCAxYBHgMAAQEDFgEfAysBQwMrAUMDKwFDAyUBNwMGAQiIAAMOARMDKQE+
AVEBUgFRAacBVQFcAVUB6gEAAYYBFgH/AQABhgEVAf8BAAGFARQB/wEAAYYBFQH/AQABhwEWAf8BVwFc
AVcB3wM/AW0DHgErAwMBBAgAAwgBCwMXASADNQFYAZcBlQGUAf8BtwG1AbMB/wG6AbgBtgH/AZUBkwGQ
Af8BHAEaARkB/wMqAUABHQEbARkB/wGVAZMBkQH/AbkBtwG1Af8BuAG2AbQB/wGYAZYBlQH/AzIBUYgA
AVYBWAFWAcEBIwHMAagB/wE5AdkBtgH/AUQB3gG5Af8BTwHjAb4B/wGKAeoBxAH/AZUB7gHIAf8BiAHo
AcMB/wFPAeIBvQH/AUQB3QG6Af8BPAHbAbkB/wEAAZcBLQH/AxABFQQAAwoBDQNTAagBogGcAZIB/wEr
ASkBKgH/AYICgAH/Ad4B1AHMAf8BSAFEAUIB/wEnASUBJAH/AScBJQEkAf8BJwElASQB/wEnASUBJAH/
ASgBJgElAf8CXAF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f8BOwHS
AaUB/wEAAZsBMAH/AUkBSgFJAYkIAAMDAQQBtQGtAaEB/wHpAeEB1wH/AeYB3gHUAf8B5QHdAdMB/wHk
AdwB0gH/AeQB3AHSAf8B5AHcAdIB/wHkAdwB0gH/AeUB3QHTAf8B5wHfAdUB/wHiAdoB0AH/A1UBstQA
AyUBNwNdAdIBqgGiAZYB/wGqAaIBlgH/AaoBogGWAf8BqgGiAZYB/wGqAaIBlgH/A2EB4gNIAYUDAAEB
kAABQgFNAT4HAAE+AwABKAMAAUADAAEQAwABAQEAAQEFAAGAFwAD/wEAAeABBwHgBQABwAEBAYAFAAHA
AQEGAAHAAQEGAAHAAQEGAAHAAQEBAAEHBAABwAEBAQABBwQAAcABAQEAAQcEAAHAAQEBAAEHBAABwAEB
AQABBwQAAcABAQEAAQcEAAHAAQEBAAEHBAABwAEBAQABBwQAAcABAQEAAQcEAAHAAQMBAAEHBAAC/wHA
AQ8EAAs=
</value>
</data>
<metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>48</value>
</metadata>
</root>
Loading

0 comments on commit d79cacf

Please sign in to comment.