ALL: Update NLog
This commit is contained in:
14
ConfigCreator/Config.vb
Normal file
14
ConfigCreator/Config.vb
Normal file
@@ -0,0 +1,14 @@
|
||||
Public Class Config
|
||||
|
||||
Public Property EmailTemplate As New EmailTemplateConfig
|
||||
|
||||
Public Class EmailTemplateConfig
|
||||
Public BaseHtml As String = ""
|
||||
Public BannerUrl As String = ""
|
||||
Public OutputPath As String = ""
|
||||
Public TrackingLink As String = ""
|
||||
Public ActiveDirectoryGroup As String = ""
|
||||
End Class
|
||||
End Class
|
||||
|
||||
|
||||
@@ -82,6 +82,7 @@
|
||||
<Import Include="System.Threading.Tasks" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Config.vb" />
|
||||
<Compile Include="frmStart.Designer.vb">
|
||||
<DependentUpon>frmStart.vb</DependentUpon>
|
||||
</Compile>
|
||||
@@ -134,6 +135,10 @@
|
||||
<Project>{44982f9b-6116-44e2-85d0-f39650b1ef99}</Project>
|
||||
<Name>Config</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\Modules.Interfaces\Interfaces.vbproj">
|
||||
<Project>{ab6f09bf-e794-4f6a-94bb-c97c0ba84d64}</Project>
|
||||
<Name>Interfaces</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\Modules.Logging\Logging.vbproj">
|
||||
<Project>{903b2d7d-3b80-4be9-8713-7447b704e1b0}</Project>
|
||||
<Name>Logging</Name>
|
||||
@@ -143,5 +148,11 @@
|
||||
<Name>DDZUGFeRDService</Name>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="Resources\defaultprinter.svg" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="Resources\defaultprinter1.svg" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.VisualBasic.targets" />
|
||||
</Project>
|
||||
20
ConfigCreator/My Project/Resources.Designer.vb
generated
20
ConfigCreator/My Project/Resources.Designer.vb
generated
@@ -69,5 +69,25 @@ Namespace My.Resources
|
||||
Return CType(obj,DevExpress.Utils.Svg.SvgImage)
|
||||
End Get
|
||||
End Property
|
||||
|
||||
'''<summary>
|
||||
''' Sucht eine lokalisierte Ressource vom Typ DevExpress.Utils.Svg.SvgImage.
|
||||
'''</summary>
|
||||
Friend ReadOnly Property defaultprinter() As DevExpress.Utils.Svg.SvgImage
|
||||
Get
|
||||
Dim obj As Object = ResourceManager.GetObject("defaultprinter", resourceCulture)
|
||||
Return CType(obj,DevExpress.Utils.Svg.SvgImage)
|
||||
End Get
|
||||
End Property
|
||||
|
||||
'''<summary>
|
||||
''' Sucht eine lokalisierte Ressource vom Typ DevExpress.Utils.Svg.SvgImage.
|
||||
'''</summary>
|
||||
Friend ReadOnly Property defaultprinter1() As DevExpress.Utils.Svg.SvgImage
|
||||
Get
|
||||
Dim obj As Object = ResourceManager.GetObject("defaultprinter1", resourceCulture)
|
||||
Return CType(obj,DevExpress.Utils.Svg.SvgImage)
|
||||
End Get
|
||||
End Property
|
||||
End Module
|
||||
End Namespace
|
||||
|
||||
@@ -118,7 +118,13 @@
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
||||
<data name="defaultprinter" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\defaultprinter.svg;DevExpress.Utils.Svg.SvgImage, DevExpress.Data.v19.2, Version=19.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a</value>
|
||||
</data>
|
||||
<data name="3trafficlightsrimmed" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\3trafficlightsrimmed.svg;DevExpress.Utils.Svg.SvgImage, DevExpress.Data.v19.2, Version=19.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a</value>
|
||||
</data>
|
||||
<data name="defaultprinter1" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\defaultprinter1.svg;DevExpress.Utils.Svg.SvgImage, DevExpress.Data.v19.2, Version=19.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -1,4 +1,5 @@
|
||||
DevExpress.XtraEditors.ComboBoxEdit, DevExpress.XtraEditors.v20.1, Version=20.1.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a
|
||||
DevExpress.XtraBars.Ribbon.RibbonControl, DevExpress.XtraBars.v19.2, Version=19.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a
|
||||
DevExpress.XtraEditors.TextEdit, DevExpress.XtraEditors.v19.2, Version=19.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a
|
||||
DevExpress.XtraEditors.ComboBoxEdit, DevExpress.XtraEditors.v19.2, Version=19.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a
|
||||
DevExpress.XtraLayout.LayoutControl, DevExpress.XtraLayout.v19.2, Version=19.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a
|
||||
DevExpress.XtraBars.Ribbon.RibbonControl, DevExpress.XtraBars.v19.2, Version=19.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a
|
||||
|
||||
18
ConfigCreator/Resources/defaultprinter.svg
Normal file
18
ConfigCreator/Resources/defaultprinter.svg
Normal file
@@ -0,0 +1,18 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<svg x="0px" y="0px" viewBox="0 0 32 32" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" id="Layer_1" style="enable-background:new 0 0 32 32">
|
||||
<style type="text/css">
|
||||
.Black{fill:#727272;}
|
||||
.Yellow{fill:#FFB115;}
|
||||
.Blue{fill:#1177D7;}
|
||||
.Red{fill:#D11C1C;}
|
||||
.White{fill:#FFFFFF;}
|
||||
.Green{fill:#039C23;}
|
||||
.st0{fill:#727272;}
|
||||
.st1{opacity:0.5;}
|
||||
.st2{opacity:0.75;}
|
||||
</style>
|
||||
<g id="DefaultPrinter">
|
||||
<path d="M8,16H6V6h8v2H8V16z M26,18v8c0,1.1-0.9,2-2,2h-4v4H6v-4H2c-1.1,0-2-0.9-2-2V16c0-1.1,0.9-2,2-2h2v3 c0,0.6,0.4,1,1,1H26z M18,22H8v8h10V22z" class="Black" />
|
||||
<path d="M31,0H17c-0.5,0-1,0.5-1,1v14c0,0.5,0.5,1,1,1h14c0.5,0,1-0.5,1-1V1C32,0.5,31.5,0,31,0z M30,5l-8,8l-4-4V6 l4,4l8-8V5z" class="Green" />
|
||||
</g>
|
||||
</svg>
|
||||
18
ConfigCreator/Resources/defaultprinter1.svg
Normal file
18
ConfigCreator/Resources/defaultprinter1.svg
Normal file
@@ -0,0 +1,18 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<svg x="0px" y="0px" viewBox="0 0 32 32" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" id="Layer_1" style="enable-background:new 0 0 32 32">
|
||||
<style type="text/css">
|
||||
.Black{fill:#727272;}
|
||||
.Yellow{fill:#FFB115;}
|
||||
.Blue{fill:#1177D7;}
|
||||
.Red{fill:#D11C1C;}
|
||||
.White{fill:#FFFFFF;}
|
||||
.Green{fill:#039C23;}
|
||||
.st0{fill:#727272;}
|
||||
.st1{opacity:0.5;}
|
||||
.st2{opacity:0.75;}
|
||||
</style>
|
||||
<g id="DefaultPrinter">
|
||||
<path d="M8,16H6V6h8v2H8V16z M26,18v8c0,1.1-0.9,2-2,2h-4v4H6v-4H2c-1.1,0-2-0.9-2-2V16c0-1.1,0.9-2,2-2h2v3 c0,0.6,0.4,1,1,1H26z M18,22H8v8h10V22z" class="Black" />
|
||||
<path d="M31,0H17c-0.5,0-1,0.5-1,1v14c0,0.5,0.5,1,1,1h14c0.5,0,1-0.5,1-1V1C32,0.5,31.5,0,31,0z M30,5l-8,8l-4-4V6 l4,4l8-8V5z" class="Green" />
|
||||
</g>
|
||||
</svg>
|
||||
256
ConfigCreator/frmStart.Designer.vb
generated
256
ConfigCreator/frmStart.Designer.vb
generated
@@ -33,11 +33,24 @@ Partial Class frmStart
|
||||
Me.XtraTabControl1 = New DevExpress.XtraTab.XtraTabControl()
|
||||
Me.XtraTabPage1 = New DevExpress.XtraTab.XtraTabPage()
|
||||
Me.XtraTabPage2 = New DevExpress.XtraTab.XtraTabPage()
|
||||
Me.LayoutControl2 = New DevExpress.XtraLayout.LayoutControl()
|
||||
Me.txxTemplate = New DevExpress.XtraEditors.MemoEdit()
|
||||
Me.RibbonControl1 = New DevExpress.XtraBars.Ribbon.RibbonControl()
|
||||
Me.BarButtonItem1 = New DevExpress.XtraBars.BarButtonItem()
|
||||
Me.RibbonPage1 = New DevExpress.XtraBars.Ribbon.RibbonPage()
|
||||
Me.RibbonPageGroup1 = New DevExpress.XtraBars.Ribbon.RibbonPageGroup()
|
||||
Me.RibbonPageGroup2 = New DevExpress.XtraBars.Ribbon.RibbonPageGroup()
|
||||
Me.RibbonStatusBar1 = New DevExpress.XtraBars.Ribbon.RibbonStatusBar()
|
||||
Me.txtBannerUrl = New DevExpress.XtraEditors.TextEdit()
|
||||
Me.txtTrackingUrl = New DevExpress.XtraEditors.TextEdit()
|
||||
Me.txtOutputPath = New DevExpress.XtraEditors.TextEdit()
|
||||
Me.txtADGroup = New DevExpress.XtraEditors.TextEdit()
|
||||
Me.SimpleButton2 = New DevExpress.XtraEditors.SimpleButton()
|
||||
Me.LayoutControlGroup1 = New DevExpress.XtraLayout.LayoutControlGroup()
|
||||
Me.LayoutControlItem4 = New DevExpress.XtraLayout.LayoutControlItem()
|
||||
Me.LayoutControlItem5 = New DevExpress.XtraLayout.LayoutControlItem()
|
||||
Me.LayoutControlItem6 = New DevExpress.XtraLayout.LayoutControlItem()
|
||||
Me.LayoutControlItem8 = New DevExpress.XtraLayout.LayoutControlItem()
|
||||
Me.LayoutControlItem7 = New DevExpress.XtraLayout.LayoutControlItem()
|
||||
Me.LayoutControlItem9 = New DevExpress.XtraLayout.LayoutControlItem()
|
||||
Me.RibbonPage2 = New DevExpress.XtraBars.Ribbon.RibbonPage()
|
||||
CType(Me.ComboBoxEdit1.Properties, System.ComponentModel.ISupportInitialize).BeginInit()
|
||||
CType(Me.LayoutControl1, System.ComponentModel.ISupportInitialize).BeginInit()
|
||||
@@ -51,16 +64,31 @@ Partial Class frmStart
|
||||
CType(Me.XtraTabControl1, System.ComponentModel.ISupportInitialize).BeginInit()
|
||||
Me.XtraTabControl1.SuspendLayout()
|
||||
Me.XtraTabPage1.SuspendLayout()
|
||||
Me.XtraTabPage2.SuspendLayout()
|
||||
CType(Me.LayoutControl2, System.ComponentModel.ISupportInitialize).BeginInit()
|
||||
Me.LayoutControl2.SuspendLayout()
|
||||
CType(Me.txxTemplate.Properties, System.ComponentModel.ISupportInitialize).BeginInit()
|
||||
CType(Me.RibbonControl1, System.ComponentModel.ISupportInitialize).BeginInit()
|
||||
CType(Me.txtBannerUrl.Properties, System.ComponentModel.ISupportInitialize).BeginInit()
|
||||
CType(Me.txtTrackingUrl.Properties, System.ComponentModel.ISupportInitialize).BeginInit()
|
||||
CType(Me.txtOutputPath.Properties, System.ComponentModel.ISupportInitialize).BeginInit()
|
||||
CType(Me.txtADGroup.Properties, System.ComponentModel.ISupportInitialize).BeginInit()
|
||||
CType(Me.LayoutControlGroup1, System.ComponentModel.ISupportInitialize).BeginInit()
|
||||
CType(Me.LayoutControlItem4, System.ComponentModel.ISupportInitialize).BeginInit()
|
||||
CType(Me.LayoutControlItem5, System.ComponentModel.ISupportInitialize).BeginInit()
|
||||
CType(Me.LayoutControlItem6, System.ComponentModel.ISupportInitialize).BeginInit()
|
||||
CType(Me.LayoutControlItem8, System.ComponentModel.ISupportInitialize).BeginInit()
|
||||
CType(Me.LayoutControlItem7, System.ComponentModel.ISupportInitialize).BeginInit()
|
||||
CType(Me.LayoutControlItem9, System.ComponentModel.ISupportInitialize).BeginInit()
|
||||
Me.SuspendLayout()
|
||||
'
|
||||
'ComboBoxEdit1
|
||||
'
|
||||
Me.ComboBoxEdit1.Location = New System.Drawing.Point(100, 12)
|
||||
Me.ComboBoxEdit1.Location = New System.Drawing.Point(108, 20)
|
||||
Me.ComboBoxEdit1.Name = "ComboBoxEdit1"
|
||||
Me.ComboBoxEdit1.Properties.Buttons.AddRange(New DevExpress.XtraEditors.Controls.EditorButton() {New DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)})
|
||||
Me.ComboBoxEdit1.Properties.Items.AddRange(New Object() {"ZUGFERD_SERVICE"})
|
||||
Me.ComboBoxEdit1.Size = New System.Drawing.Size(758, 20)
|
||||
Me.ComboBoxEdit1.Size = New System.Drawing.Size(742, 20)
|
||||
Me.ComboBoxEdit1.StyleController = Me.LayoutControl1
|
||||
Me.ComboBoxEdit1.TabIndex = 0
|
||||
'
|
||||
@@ -79,19 +107,19 @@ Partial Class frmStart
|
||||
'
|
||||
'MemoEdit1
|
||||
'
|
||||
Me.MemoEdit1.Location = New System.Drawing.Point(12, 54)
|
||||
Me.MemoEdit1.Location = New System.Drawing.Point(20, 78)
|
||||
Me.MemoEdit1.Name = "MemoEdit1"
|
||||
Me.MemoEdit1.Properties.Appearance.Font = New System.Drawing.Font("Consolas", 12.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
|
||||
Me.MemoEdit1.Properties.Appearance.Options.UseFont = True
|
||||
Me.MemoEdit1.Size = New System.Drawing.Size(1075, 325)
|
||||
Me.MemoEdit1.Size = New System.Drawing.Size(1059, 293)
|
||||
Me.MemoEdit1.StyleController = Me.LayoutControl1
|
||||
Me.MemoEdit1.TabIndex = 5
|
||||
'
|
||||
'SimpleButton1
|
||||
'
|
||||
Me.SimpleButton1.Location = New System.Drawing.Point(862, 12)
|
||||
Me.SimpleButton1.Location = New System.Drawing.Point(870, 20)
|
||||
Me.SimpleButton1.Name = "SimpleButton1"
|
||||
Me.SimpleButton1.Size = New System.Drawing.Size(225, 22)
|
||||
Me.SimpleButton1.Size = New System.Drawing.Size(209, 22)
|
||||
Me.SimpleButton1.StyleController = Me.LayoutControl1
|
||||
Me.SimpleButton1.TabIndex = 4
|
||||
Me.SimpleButton1.Text = "Get Config"
|
||||
@@ -110,7 +138,8 @@ Partial Class frmStart
|
||||
Me.LayoutControlItem1.Control = Me.ComboBoxEdit1
|
||||
Me.LayoutControlItem1.Location = New System.Drawing.Point(0, 0)
|
||||
Me.LayoutControlItem1.Name = "LayoutControlItem1"
|
||||
Me.LayoutControlItem1.Size = New System.Drawing.Size(850, 26)
|
||||
Me.LayoutControlItem1.Padding = New DevExpress.XtraLayout.Utils.Padding(10, 10, 10, 10)
|
||||
Me.LayoutControlItem1.Size = New System.Drawing.Size(850, 42)
|
||||
Me.LayoutControlItem1.Text = "Config Type"
|
||||
Me.LayoutControlItem1.TextSize = New System.Drawing.Size(85, 13)
|
||||
'
|
||||
@@ -119,16 +148,18 @@ Partial Class frmStart
|
||||
Me.LayoutControlItem2.Control = Me.SimpleButton1
|
||||
Me.LayoutControlItem2.Location = New System.Drawing.Point(850, 0)
|
||||
Me.LayoutControlItem2.Name = "LayoutControlItem2"
|
||||
Me.LayoutControlItem2.Size = New System.Drawing.Size(229, 26)
|
||||
Me.LayoutControlItem2.Padding = New DevExpress.XtraLayout.Utils.Padding(10, 10, 10, 10)
|
||||
Me.LayoutControlItem2.Size = New System.Drawing.Size(229, 42)
|
||||
Me.LayoutControlItem2.TextSize = New System.Drawing.Size(0, 0)
|
||||
Me.LayoutControlItem2.TextVisible = False
|
||||
'
|
||||
'LayoutControlItem3
|
||||
'
|
||||
Me.LayoutControlItem3.Control = Me.MemoEdit1
|
||||
Me.LayoutControlItem3.Location = New System.Drawing.Point(0, 26)
|
||||
Me.LayoutControlItem3.Location = New System.Drawing.Point(0, 42)
|
||||
Me.LayoutControlItem3.Name = "LayoutControlItem3"
|
||||
Me.LayoutControlItem3.Size = New System.Drawing.Size(1079, 345)
|
||||
Me.LayoutControlItem3.Padding = New DevExpress.XtraLayout.Utils.Padding(10, 10, 10, 10)
|
||||
Me.LayoutControlItem3.Size = New System.Drawing.Size(1079, 329)
|
||||
Me.LayoutControlItem3.Text = "Config Template"
|
||||
Me.LayoutControlItem3.TextLocation = DevExpress.Utils.Locations.Top
|
||||
Me.LayoutControlItem3.TextSize = New System.Drawing.Size(85, 13)
|
||||
@@ -161,37 +192,59 @@ Partial Class frmStart
|
||||
'
|
||||
'XtraTabPage2
|
||||
'
|
||||
Me.XtraTabPage2.Controls.Add(Me.LayoutControl2)
|
||||
Me.XtraTabPage2.Name = "XtraTabPage2"
|
||||
Me.XtraTabPage2.Size = New System.Drawing.Size(1099, 393)
|
||||
Me.XtraTabPage2.Text = "XtraTabPage2"
|
||||
Me.XtraTabPage2.Size = New System.Drawing.Size(1099, 391)
|
||||
Me.XtraTabPage2.Text = "EmailSignature Generator"
|
||||
'
|
||||
'LayoutControl2
|
||||
'
|
||||
Me.LayoutControl2.Controls.Add(Me.txxTemplate)
|
||||
Me.LayoutControl2.Controls.Add(Me.txtBannerUrl)
|
||||
Me.LayoutControl2.Controls.Add(Me.txtTrackingUrl)
|
||||
Me.LayoutControl2.Controls.Add(Me.txtOutputPath)
|
||||
Me.LayoutControl2.Controls.Add(Me.txtADGroup)
|
||||
Me.LayoutControl2.Controls.Add(Me.SimpleButton2)
|
||||
Me.LayoutControl2.Dock = System.Windows.Forms.DockStyle.Fill
|
||||
Me.LayoutControl2.Location = New System.Drawing.Point(0, 0)
|
||||
Me.LayoutControl2.Name = "LayoutControl2"
|
||||
Me.LayoutControl2.Root = Me.LayoutControlGroup1
|
||||
Me.LayoutControl2.Size = New System.Drawing.Size(1099, 391)
|
||||
Me.LayoutControl2.TabIndex = 0
|
||||
Me.LayoutControl2.Text = "LayoutControl2"
|
||||
'
|
||||
'txxTemplate
|
||||
'
|
||||
Me.txxTemplate.Location = New System.Drawing.Point(135, 126)
|
||||
Me.txxTemplate.MenuManager = Me.RibbonControl1
|
||||
Me.txxTemplate.Name = "txxTemplate"
|
||||
Me.txxTemplate.Size = New System.Drawing.Size(944, 245)
|
||||
Me.txxTemplate.StyleController = Me.LayoutControl2
|
||||
Me.txxTemplate.TabIndex = 4
|
||||
'
|
||||
'RibbonControl1
|
||||
'
|
||||
Me.RibbonControl1.ExpandCollapseItem.Id = 0
|
||||
Me.RibbonControl1.Items.AddRange(New DevExpress.XtraBars.BarItem() {Me.RibbonControl1.ExpandCollapseItem, Me.RibbonControl1.SearchEditItem})
|
||||
Me.RibbonControl1.Items.AddRange(New DevExpress.XtraBars.BarItem() {Me.RibbonControl1.ExpandCollapseItem, Me.RibbonControl1.SearchEditItem, Me.BarButtonItem1})
|
||||
Me.RibbonControl1.Location = New System.Drawing.Point(0, 0)
|
||||
Me.RibbonControl1.MaxItemId = 1
|
||||
Me.RibbonControl1.MaxItemId = 2
|
||||
Me.RibbonControl1.Name = "RibbonControl1"
|
||||
Me.RibbonControl1.Pages.AddRange(New DevExpress.XtraBars.Ribbon.RibbonPage() {Me.RibbonPage1})
|
||||
Me.RibbonControl1.Size = New System.Drawing.Size(1101, 159)
|
||||
Me.RibbonControl1.StatusBar = Me.RibbonStatusBar1
|
||||
'
|
||||
'BarButtonItem1
|
||||
'
|
||||
Me.BarButtonItem1.Caption = "Generate!"
|
||||
Me.BarButtonItem1.Id = 1
|
||||
Me.BarButtonItem1.ImageOptions.SvgImage = Global.DigitalData.GUIs.MonoRepoUtils.My.Resources.Resources.defaultprinter
|
||||
Me.BarButtonItem1.Name = "BarButtonItem1"
|
||||
'
|
||||
'RibbonPage1
|
||||
'
|
||||
Me.RibbonPage1.Groups.AddRange(New DevExpress.XtraBars.Ribbon.RibbonPageGroup() {Me.RibbonPageGroup1, Me.RibbonPageGroup2})
|
||||
Me.RibbonPage1.Name = "RibbonPage1"
|
||||
Me.RibbonPage1.Text = "RibbonPage1"
|
||||
'
|
||||
'RibbonPageGroup1
|
||||
'
|
||||
Me.RibbonPageGroup1.Name = "RibbonPageGroup1"
|
||||
Me.RibbonPageGroup1.Text = "RibbonPageGroup1"
|
||||
'
|
||||
'RibbonPageGroup2
|
||||
'
|
||||
Me.RibbonPageGroup2.Name = "RibbonPageGroup2"
|
||||
Me.RibbonPageGroup2.Text = "RibbonPageGroup2"
|
||||
'
|
||||
'RibbonStatusBar1
|
||||
'
|
||||
Me.RibbonStatusBar1.Location = New System.Drawing.Point(0, 573)
|
||||
@@ -199,6 +252,122 @@ Partial Class frmStart
|
||||
Me.RibbonStatusBar1.Ribbon = Me.RibbonControl1
|
||||
Me.RibbonStatusBar1.Size = New System.Drawing.Size(1101, 22)
|
||||
'
|
||||
'txtBannerUrl
|
||||
'
|
||||
Me.txtBannerUrl.Location = New System.Drawing.Point(135, 20)
|
||||
Me.txtBannerUrl.MenuManager = Me.RibbonControl1
|
||||
Me.txtBannerUrl.Name = "txtBannerUrl"
|
||||
Me.txtBannerUrl.Size = New System.Drawing.Size(361, 20)
|
||||
Me.txtBannerUrl.StyleController = Me.LayoutControl2
|
||||
Me.txtBannerUrl.TabIndex = 5
|
||||
'
|
||||
'txtTrackingUrl
|
||||
'
|
||||
Me.txtTrackingUrl.Location = New System.Drawing.Point(631, 20)
|
||||
Me.txtTrackingUrl.MenuManager = Me.RibbonControl1
|
||||
Me.txtTrackingUrl.Name = "txtTrackingUrl"
|
||||
Me.txtTrackingUrl.Size = New System.Drawing.Size(448, 20)
|
||||
Me.txtTrackingUrl.StyleController = Me.LayoutControl2
|
||||
Me.txtTrackingUrl.TabIndex = 6
|
||||
'
|
||||
'txtOutputPath
|
||||
'
|
||||
Me.txtOutputPath.Location = New System.Drawing.Point(631, 60)
|
||||
Me.txtOutputPath.MenuManager = Me.RibbonControl1
|
||||
Me.txtOutputPath.Name = "txtOutputPath"
|
||||
Me.txtOutputPath.Size = New System.Drawing.Size(448, 20)
|
||||
Me.txtOutputPath.StyleController = Me.LayoutControl2
|
||||
Me.txtOutputPath.TabIndex = 7
|
||||
'
|
||||
'txtADGroup
|
||||
'
|
||||
Me.txtADGroup.Location = New System.Drawing.Point(135, 60)
|
||||
Me.txtADGroup.MenuManager = Me.RibbonControl1
|
||||
Me.txtADGroup.Name = "txtADGroup"
|
||||
Me.txtADGroup.Size = New System.Drawing.Size(361, 20)
|
||||
Me.txtADGroup.StyleController = Me.LayoutControl2
|
||||
Me.txtADGroup.TabIndex = 8
|
||||
'
|
||||
'SimpleButton2
|
||||
'
|
||||
Me.SimpleButton2.ImageOptions.Location = DevExpress.XtraEditors.ImageLocation.MiddleLeft
|
||||
Me.SimpleButton2.ImageOptions.SvgImage = Global.DigitalData.GUIs.MonoRepoUtils.My.Resources.Resources.defaultprinter1
|
||||
Me.SimpleButton2.ImageOptions.SvgImageSize = New System.Drawing.Size(16, 16)
|
||||
Me.SimpleButton2.Location = New System.Drawing.Point(508, 92)
|
||||
Me.SimpleButton2.Name = "SimpleButton2"
|
||||
Me.SimpleButton2.Size = New System.Drawing.Size(579, 22)
|
||||
Me.SimpleButton2.StyleController = Me.LayoutControl2
|
||||
Me.SimpleButton2.TabIndex = 9
|
||||
Me.SimpleButton2.Text = "Generate!"
|
||||
'
|
||||
'LayoutControlGroup1
|
||||
'
|
||||
Me.LayoutControlGroup1.EnableIndentsWithoutBorders = DevExpress.Utils.DefaultBoolean.[True]
|
||||
Me.LayoutControlGroup1.GroupBordersVisible = False
|
||||
Me.LayoutControlGroup1.Items.AddRange(New DevExpress.XtraLayout.BaseLayoutItem() {Me.LayoutControlItem4, Me.LayoutControlItem5, Me.LayoutControlItem6, Me.LayoutControlItem8, Me.LayoutControlItem7, Me.LayoutControlItem9})
|
||||
Me.LayoutControlGroup1.Name = "LayoutControlGroup1"
|
||||
Me.LayoutControlGroup1.Size = New System.Drawing.Size(1099, 391)
|
||||
Me.LayoutControlGroup1.TextVisible = False
|
||||
'
|
||||
'LayoutControlItem4
|
||||
'
|
||||
Me.LayoutControlItem4.Control = Me.txxTemplate
|
||||
Me.LayoutControlItem4.Location = New System.Drawing.Point(0, 106)
|
||||
Me.LayoutControlItem4.Name = "LayoutControlItem4"
|
||||
Me.LayoutControlItem4.Padding = New DevExpress.XtraLayout.Utils.Padding(10, 10, 10, 10)
|
||||
Me.LayoutControlItem4.Size = New System.Drawing.Size(1079, 265)
|
||||
Me.LayoutControlItem4.Text = "HTML Template"
|
||||
Me.LayoutControlItem4.TextSize = New System.Drawing.Size(112, 13)
|
||||
'
|
||||
'LayoutControlItem5
|
||||
'
|
||||
Me.LayoutControlItem5.Control = Me.txtBannerUrl
|
||||
Me.LayoutControlItem5.Location = New System.Drawing.Point(0, 0)
|
||||
Me.LayoutControlItem5.Name = "LayoutControlItem5"
|
||||
Me.LayoutControlItem5.Padding = New DevExpress.XtraLayout.Utils.Padding(10, 10, 10, 10)
|
||||
Me.LayoutControlItem5.Size = New System.Drawing.Size(496, 40)
|
||||
Me.LayoutControlItem5.Text = "Banner URL"
|
||||
Me.LayoutControlItem5.TextSize = New System.Drawing.Size(112, 13)
|
||||
'
|
||||
'LayoutControlItem6
|
||||
'
|
||||
Me.LayoutControlItem6.Control = Me.txtTrackingUrl
|
||||
Me.LayoutControlItem6.Location = New System.Drawing.Point(496, 0)
|
||||
Me.LayoutControlItem6.Name = "LayoutControlItem6"
|
||||
Me.LayoutControlItem6.Padding = New DevExpress.XtraLayout.Utils.Padding(10, 10, 10, 10)
|
||||
Me.LayoutControlItem6.Size = New System.Drawing.Size(583, 40)
|
||||
Me.LayoutControlItem6.Text = "Tracking URL"
|
||||
Me.LayoutControlItem6.TextSize = New System.Drawing.Size(112, 13)
|
||||
'
|
||||
'LayoutControlItem8
|
||||
'
|
||||
Me.LayoutControlItem8.Control = Me.txtADGroup
|
||||
Me.LayoutControlItem8.Location = New System.Drawing.Point(0, 40)
|
||||
Me.LayoutControlItem8.Name = "LayoutControlItem8"
|
||||
Me.LayoutControlItem8.Padding = New DevExpress.XtraLayout.Utils.Padding(10, 10, 10, 10)
|
||||
Me.LayoutControlItem8.Size = New System.Drawing.Size(496, 66)
|
||||
Me.LayoutControlItem8.Text = "ActiveDirectory Group"
|
||||
Me.LayoutControlItem8.TextSize = New System.Drawing.Size(112, 13)
|
||||
'
|
||||
'LayoutControlItem7
|
||||
'
|
||||
Me.LayoutControlItem7.Control = Me.txtOutputPath
|
||||
Me.LayoutControlItem7.Location = New System.Drawing.Point(496, 40)
|
||||
Me.LayoutControlItem7.Name = "LayoutControlItem7"
|
||||
Me.LayoutControlItem7.Padding = New DevExpress.XtraLayout.Utils.Padding(10, 10, 10, 10)
|
||||
Me.LayoutControlItem7.Size = New System.Drawing.Size(583, 40)
|
||||
Me.LayoutControlItem7.Text = "Output Path"
|
||||
Me.LayoutControlItem7.TextSize = New System.Drawing.Size(112, 13)
|
||||
'
|
||||
'LayoutControlItem9
|
||||
'
|
||||
Me.LayoutControlItem9.Control = Me.SimpleButton2
|
||||
Me.LayoutControlItem9.Location = New System.Drawing.Point(496, 80)
|
||||
Me.LayoutControlItem9.Name = "LayoutControlItem9"
|
||||
Me.LayoutControlItem9.Size = New System.Drawing.Size(583, 26)
|
||||
Me.LayoutControlItem9.TextSize = New System.Drawing.Size(0, 0)
|
||||
Me.LayoutControlItem9.TextVisible = False
|
||||
'
|
||||
'RibbonPage2
|
||||
'
|
||||
Me.RibbonPage2.Name = "RibbonPage2"
|
||||
@@ -212,7 +381,6 @@ Partial Class frmStart
|
||||
Me.Controls.Add(Me.FluentDesignFormContainer1)
|
||||
Me.Controls.Add(Me.RibbonStatusBar1)
|
||||
Me.Controls.Add(Me.RibbonControl1)
|
||||
Me.Font = New System.Drawing.Font("Segoe UI", 8.25!)
|
||||
Me.IconOptions.SvgImage = Global.DigitalData.GUIs.MonoRepoUtils.My.Resources.Resources._3trafficlightsrimmed
|
||||
Me.Name = "frmStart"
|
||||
Me.Ribbon = Me.RibbonControl1
|
||||
@@ -230,7 +398,22 @@ Partial Class frmStart
|
||||
CType(Me.XtraTabControl1, System.ComponentModel.ISupportInitialize).EndInit()
|
||||
Me.XtraTabControl1.ResumeLayout(False)
|
||||
Me.XtraTabPage1.ResumeLayout(False)
|
||||
Me.XtraTabPage2.ResumeLayout(False)
|
||||
CType(Me.LayoutControl2, System.ComponentModel.ISupportInitialize).EndInit()
|
||||
Me.LayoutControl2.ResumeLayout(False)
|
||||
CType(Me.txxTemplate.Properties, System.ComponentModel.ISupportInitialize).EndInit()
|
||||
CType(Me.RibbonControl1, System.ComponentModel.ISupportInitialize).EndInit()
|
||||
CType(Me.txtBannerUrl.Properties, System.ComponentModel.ISupportInitialize).EndInit()
|
||||
CType(Me.txtTrackingUrl.Properties, System.ComponentModel.ISupportInitialize).EndInit()
|
||||
CType(Me.txtOutputPath.Properties, System.ComponentModel.ISupportInitialize).EndInit()
|
||||
CType(Me.txtADGroup.Properties, System.ComponentModel.ISupportInitialize).EndInit()
|
||||
CType(Me.LayoutControlGroup1, System.ComponentModel.ISupportInitialize).EndInit()
|
||||
CType(Me.LayoutControlItem4, System.ComponentModel.ISupportInitialize).EndInit()
|
||||
CType(Me.LayoutControlItem5, System.ComponentModel.ISupportInitialize).EndInit()
|
||||
CType(Me.LayoutControlItem6, System.ComponentModel.ISupportInitialize).EndInit()
|
||||
CType(Me.LayoutControlItem8, System.ComponentModel.ISupportInitialize).EndInit()
|
||||
CType(Me.LayoutControlItem7, System.ComponentModel.ISupportInitialize).EndInit()
|
||||
CType(Me.LayoutControlItem9, System.ComponentModel.ISupportInitialize).EndInit()
|
||||
Me.ResumeLayout(False)
|
||||
Me.PerformLayout()
|
||||
|
||||
@@ -250,8 +433,21 @@ Partial Class frmStart
|
||||
Friend WithEvents XtraTabPage2 As DevExpress.XtraTab.XtraTabPage
|
||||
Friend WithEvents RibbonControl1 As DevExpress.XtraBars.Ribbon.RibbonControl
|
||||
Friend WithEvents RibbonPage1 As DevExpress.XtraBars.Ribbon.RibbonPage
|
||||
Friend WithEvents RibbonPageGroup1 As DevExpress.XtraBars.Ribbon.RibbonPageGroup
|
||||
Friend WithEvents RibbonPageGroup2 As DevExpress.XtraBars.Ribbon.RibbonPageGroup
|
||||
Friend WithEvents RibbonStatusBar1 As DevExpress.XtraBars.Ribbon.RibbonStatusBar
|
||||
Friend WithEvents RibbonPage2 As DevExpress.XtraBars.Ribbon.RibbonPage
|
||||
Friend WithEvents LayoutControl2 As DevExpress.XtraLayout.LayoutControl
|
||||
Friend WithEvents txxTemplate As MemoEdit
|
||||
Friend WithEvents txtBannerUrl As TextEdit
|
||||
Friend WithEvents LayoutControlGroup1 As DevExpress.XtraLayout.LayoutControlGroup
|
||||
Friend WithEvents LayoutControlItem4 As DevExpress.XtraLayout.LayoutControlItem
|
||||
Friend WithEvents LayoutControlItem5 As DevExpress.XtraLayout.LayoutControlItem
|
||||
Friend WithEvents txtTrackingUrl As TextEdit
|
||||
Friend WithEvents txtOutputPath As TextEdit
|
||||
Friend WithEvents LayoutControlItem6 As DevExpress.XtraLayout.LayoutControlItem
|
||||
Friend WithEvents LayoutControlItem7 As DevExpress.XtraLayout.LayoutControlItem
|
||||
Friend WithEvents txtADGroup As TextEdit
|
||||
Friend WithEvents LayoutControlItem8 As DevExpress.XtraLayout.LayoutControlItem
|
||||
Friend WithEvents BarButtonItem1 As DevExpress.XtraBars.BarButtonItem
|
||||
Friend WithEvents SimpleButton2 As SimpleButton
|
||||
Friend WithEvents LayoutControlItem9 As DevExpress.XtraLayout.LayoutControlItem
|
||||
End Class
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
Imports System.IO
|
||||
Imports System.Xml.Serialization
|
||||
Imports DigitalData.Modules.Config
|
||||
Imports DigitalData.Modules.Logging
|
||||
Imports DigitalData.Modules.Interfaces
|
||||
|
||||
Public Class frmStart
|
||||
Private Const ZUGFERD_SERVICE = "ZUGFERD_SERVICE"
|
||||
@@ -9,10 +12,24 @@ Public Class frmStart
|
||||
ZUGFERD_SERVICE
|
||||
}
|
||||
|
||||
Private LogConfig As LogConfig
|
||||
Private Config As ConfigManager(Of Config)
|
||||
Private ActiveDir As ActiveDirectoryInterface
|
||||
|
||||
|
||||
Private Sub frmStart_Load(sender As Object, e As EventArgs) Handles MyBase.Load
|
||||
ComboBoxEdit1.Properties.Items.Clear()
|
||||
ComboBoxEdit1.Properties.Items.AddRange(Configs)
|
||||
|
||||
LogConfig = New LogConfig(LogConfig.PathType.Temp, Nothing, Nothing, "Digital Data", "Monorepo Utils")
|
||||
Config = New ConfigManager(Of Config)(LogConfig, Application.CommonAppDataPath)
|
||||
ActiveDir = New ActiveDirectoryInterface(LogConfig)
|
||||
|
||||
txxTemplate.Text = Config.Config.EmailTemplate.BaseHtml
|
||||
txtBannerUrl.Text = Config.Config.EmailTemplate.BannerUrl
|
||||
txtTrackingUrl.Text = Config.Config.EmailTemplate.TrackingLink
|
||||
txtOutputPath.Text = Config.Config.EmailTemplate.OutputPath
|
||||
txtADGroup.Text = Config.Config.EmailTemplate.ActiveDirectoryGroup
|
||||
End Sub
|
||||
|
||||
Private Sub SimpleButton1_Click(sender As Object, e As EventArgs) Handles SimpleButton1.Click
|
||||
@@ -39,4 +56,18 @@ Public Class frmStart
|
||||
|
||||
Return System.Text.Encoding.UTF8.GetString(oBytes)
|
||||
End Function
|
||||
|
||||
Private Sub frmStart_FormClosing(sender As Object, e As FormClosingEventArgs) Handles MyBase.FormClosing
|
||||
Config.Config.EmailTemplate.BaseHtml = txxTemplate.Text
|
||||
Config.Config.EmailTemplate.BannerUrl = txtBannerUrl.Text
|
||||
Config.Config.EmailTemplate.TrackingLink = txtTrackingUrl.Text
|
||||
Config.Config.EmailTemplate.OutputPath = txtOutputPath.Text
|
||||
Config.Config.EmailTemplate.ActiveDirectoryGroup = txtADGroup.Text
|
||||
Config.Save()
|
||||
End Sub
|
||||
|
||||
Private Sub SimpleButton2_Click(sender As Object, e As EventArgs) Handles SimpleButton2.Click
|
||||
Dim oUsers = ActiveDir.ListUsers(Config.Config.EmailTemplate.ActiveDirectoryGroup)
|
||||
MsgBox(oUsers.Count & " found.", MsgBoxStyle.Information, "Yo")
|
||||
End Sub
|
||||
End Class
|
||||
Reference in New Issue
Block a user