Projektdatei korrupt, geändert, FormDesigner tastaturbefehle nach Merge rahman wieder integriert
This commit is contained in:
parent
48d1e3e372
commit
330453abf1
1
app/TaskFlow/frmFormDesigner.Designer.vb
generated
1
app/TaskFlow/frmFormDesigner.Designer.vb
generated
@ -436,6 +436,7 @@ Partial Class frmFormDesigner
|
|||||||
Me.Controls.Add(Me.RibbonControl1)
|
Me.Controls.Add(Me.RibbonControl1)
|
||||||
Me.IconOptions.Icon = CType(resources.GetObject("frmFormDesigner.IconOptions.Icon"), System.Drawing.Icon)
|
Me.IconOptions.Icon = CType(resources.GetObject("frmFormDesigner.IconOptions.Icon"), System.Drawing.Icon)
|
||||||
Me.IconOptions.SvgImage = Global.taskFLOW.My.Resources.Resources.chartdesigner1
|
Me.IconOptions.SvgImage = Global.taskFLOW.My.Resources.Resources.chartdesigner1
|
||||||
|
Me.KeyPreview = True
|
||||||
Me.MinimizeBox = False
|
Me.MinimizeBox = False
|
||||||
Me.Name = "frmFormDesigner"
|
Me.Name = "frmFormDesigner"
|
||||||
Me.Ribbon = Me.RibbonControl1
|
Me.Ribbon = Me.RibbonControl1
|
||||||
|
|||||||
@ -125,6 +125,10 @@
|
|||||||
<data name="SplitContainerDesigner.Location" type="System.Drawing.Point, System.Drawing">
|
<data name="SplitContainerDesigner.Location" type="System.Drawing.Point, System.Drawing">
|
||||||
<value>0, 132</value>
|
<value>0, 132</value>
|
||||||
</data>
|
</data>
|
||||||
|
<assembly alias="mscorlib" name="mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
||||||
|
<data name="pnldesigner.AutoScroll" type="System.Boolean, mscorlib">
|
||||||
|
<value>True</value>
|
||||||
|
</data>
|
||||||
<data name="pnldesigner.Dock" type="System.Windows.Forms.DockStyle, System.Windows.Forms">
|
<data name="pnldesigner.Dock" type="System.Windows.Forms.DockStyle, System.Windows.Forms">
|
||||||
<value>Fill</value>
|
<value>Fill</value>
|
||||||
</data>
|
</data>
|
||||||
@ -134,7 +138,6 @@
|
|||||||
<data name="pnldesigner.Size" type="System.Drawing.Size, System.Drawing">
|
<data name="pnldesigner.Size" type="System.Drawing.Size, System.Drawing">
|
||||||
<value>820, 455</value>
|
<value>820, 455</value>
|
||||||
</data>
|
</data>
|
||||||
<assembly alias="mscorlib" name="mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
|
||||||
<data name="pnldesigner.TabIndex" type="System.Int32, mscorlib">
|
<data name="pnldesigner.TabIndex" type="System.Int32, mscorlib">
|
||||||
<value>1</value>
|
<value>1</value>
|
||||||
</data>
|
</data>
|
||||||
@ -142,7 +145,7 @@
|
|||||||
<value>pnldesigner</value>
|
<value>pnldesigner</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>pnldesigner.Type" xml:space="preserve">
|
<data name=">>pnldesigner.Type" xml:space="preserve">
|
||||||
<value>DigitalData.Controls.SnapPanel.ClassSnapPanel, DigitalData.Controls.SnapPanel, Version=1.0.1.0, Culture=neutral, PublicKeyToken=null</value>
|
<value>DigitalData.Controls.SnapPanel.ClassSnapPanel, DigitalData.Controls.SnapPanel, Version=2.0.1.0, Culture=neutral, PublicKeyToken=null</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>pnldesigner.Parent" xml:space="preserve">
|
<data name=">>pnldesigner.Parent" xml:space="preserve">
|
||||||
<value>SplitContainerDesigner.Panel1</value>
|
<value>SplitContainerDesigner.Panel1</value>
|
||||||
@ -197,7 +200,7 @@
|
|||||||
</value>
|
</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="BarButtonItem1.Caption" xml:space="preserve">
|
<data name="BarButtonItem1.Caption" xml:space="preserve">
|
||||||
<value>Control löschen</value>
|
<value>Control löschen (del)</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="BarButtonItem1.ImageOptions.SvgImage" type="DevExpress.Utils.Svg.SvgImage, DevExpress.Data.v21.2" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
<data name="BarButtonItem1.ImageOptions.SvgImage" type="DevExpress.Utils.Svg.SvgImage, DevExpress.Data.v21.2" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||||
<value>
|
<value>
|
||||||
@ -221,7 +224,7 @@
|
|||||||
</value>
|
</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="BarButtonItem2.Caption" xml:space="preserve">
|
<data name="BarButtonItem2.Caption" xml:space="preserve">
|
||||||
<value>Aktualisieren</value>
|
<value>Aktualisieren (F5)</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="BarButtonItem2.ImageOptions.SvgImage" type="DevExpress.Utils.Svg.SvgImage, DevExpress.Data.v21.2" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
<data name="BarButtonItem2.ImageOptions.SvgImage" type="DevExpress.Utils.Svg.SvgImage, DevExpress.Data.v21.2" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||||
<value>
|
<value>
|
||||||
@ -333,7 +336,7 @@
|
|||||||
<value>Linie</value>
|
<value>Linie</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="bbtniwidth_plus.Caption" xml:space="preserve">
|
<data name="bbtniwidth_plus.Caption" xml:space="preserve">
|
||||||
<value>Breiter</value>
|
<value>Breiter (+)</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="bbtniwidth_plus.ImageOptions.SvgImage" type="DevExpress.Utils.Svg.SvgImage, DevExpress.Data.v21.2" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
<data name="bbtniwidth_plus.ImageOptions.SvgImage" type="DevExpress.Utils.Svg.SvgImage, DevExpress.Data.v21.2" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||||
<value>
|
<value>
|
||||||
@ -355,7 +358,7 @@
|
|||||||
</value>
|
</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="bbtniwidth_min.Caption" xml:space="preserve">
|
<data name="bbtniwidth_min.Caption" xml:space="preserve">
|
||||||
<value>Schmaler</value>
|
<value>Schmaler (-)</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="bbtniwidth_min.ImageOptions.SvgImage" type="DevExpress.Utils.Svg.SvgImage, DevExpress.Data.v21.2" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
<data name="bbtniwidth_min.ImageOptions.SvgImage" type="DevExpress.Utils.Svg.SvgImage, DevExpress.Data.v21.2" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||||
<value>
|
<value>
|
||||||
@ -377,7 +380,7 @@
|
|||||||
</value>
|
</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="bbtniheight_plus.Caption" xml:space="preserve">
|
<data name="bbtniheight_plus.Caption" xml:space="preserve">
|
||||||
<value>Größer</value>
|
<value>Größer (Strg und +)</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="bbtniheight_plus.ImageOptions.SvgImage" type="DevExpress.Utils.Svg.SvgImage, DevExpress.Data.v21.2" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
<data name="bbtniheight_plus.ImageOptions.SvgImage" type="DevExpress.Utils.Svg.SvgImage, DevExpress.Data.v21.2" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||||
<value>
|
<value>
|
||||||
@ -396,7 +399,7 @@
|
|||||||
</value>
|
</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="bbtniheight_min.Caption" xml:space="preserve">
|
<data name="bbtniheight_min.Caption" xml:space="preserve">
|
||||||
<value>Kleiner</value>
|
<value>Kleiner (Strg und -)</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="bbtniheight_min.ImageOptions.SvgImage" type="DevExpress.Utils.Svg.SvgImage, DevExpress.Data.v21.2" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
<data name="bbtniheight_min.ImageOptions.SvgImage" type="DevExpress.Utils.Svg.SvgImage, DevExpress.Data.v21.2" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||||
<value>
|
<value>
|
||||||
@ -1314,10 +1317,4 @@
|
|||||||
<data name=">>$this.Type" xml:space="preserve">
|
<data name=">>$this.Type" xml:space="preserve">
|
||||||
<value>DevExpress.XtraBars.Ribbon.RibbonForm, DevExpress.XtraBars.v21.2, Version=21.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a</value>
|
<value>DevExpress.XtraBars.Ribbon.RibbonForm, DevExpress.XtraBars.v21.2, Version=21.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="RibbonPageGroup3.Text">
|
|
||||||
<value>Steuerelement</value>
|
|
||||||
</data>
|
|
||||||
<data name="rpggrp_controls.Text">
|
|
||||||
<value>Steuerelement hinzufügen</value>
|
|
||||||
</data>
|
|
||||||
</root>
|
</root>
|
||||||
@ -403,25 +403,40 @@ Public Class frmFormDesigner
|
|||||||
MsgBox("Error while loading Column Configuration: " & vbCrLf & ex.Message, MsgBoxStyle.Critical)
|
MsgBox("Error while loading Column Configuration: " & vbCrLf & ex.Message, MsgBoxStyle.Critical)
|
||||||
End Try
|
End Try
|
||||||
End Sub
|
End Sub
|
||||||
|
Sub Control_Delete()
|
||||||
|
If CurrentControl Is Nothing = False Then
|
||||||
Sub DeleteControl(controlName As String)
|
Dim result As MsgBoxResult = MsgBox("Wollen Sie das Control: " & CurrentControl.Name & " wirklich löschen?", MsgBoxStyle.YesNo, "Bestätigung:")
|
||||||
Try
|
|
||||||
Dim result As MsgBoxResult = MsgBox("Wollen Sie das Control: " & controlName & " wirklich löschen?", MsgBoxStyle.YesNo, "Bestätigung:")
|
|
||||||
' wenn Speichern ja
|
' wenn Speichern ja
|
||||||
If result = MsgBoxResult.Yes Then
|
If result = MsgBoxResult.Yes Then
|
||||||
Dim controlId As Integer = TBPM_PROFILE_CONTROLSTableAdapter.cmdGetGUID(ProfileId, controlName)
|
DeleteControl(CurrentControl.Name)
|
||||||
If controlId > 0 Then
|
'pgControls.Enabled = False
|
||||||
TBPM_CONTROL_TABLETableAdapter.DeleteColumnsByControlId(controlId)
|
pgControlsNew.Enabled = False
|
||||||
TBPM_PROFILE_CONTROLSTableAdapter.Delete(controlId)
|
tslblAenderungen.Caption = $"Control {CurrentControl.Name} deleted - " + Now.ToString
|
||||||
LoadControls()
|
CurrentControl = Nothing
|
||||||
End If
|
RibPGCtrlheight.Enabled = False
|
||||||
|
RibPGCtrlWidth.Enabled = False
|
||||||
|
|
||||||
|
Reload_ControlNameList()
|
||||||
|
|
||||||
|
End If
|
||||||
|
|
||||||
|
End If
|
||||||
|
End Sub
|
||||||
|
Sub DeleteControl(controlName As String)
|
||||||
|
Try
|
||||||
|
Dim controlId As Integer = TBPM_PROFILE_CONTROLSTableAdapter.cmdGetGUID(ProfileId, controlName)
|
||||||
|
If controlId > 0 Then
|
||||||
|
TBPM_CONTROL_TABLETableAdapter.DeleteColumnsByControlId(controlId)
|
||||||
|
TBPM_PROFILE_CONTROLSTableAdapter.Delete(controlId)
|
||||||
|
LoadControls()
|
||||||
End If
|
End If
|
||||||
Catch ex As Exception
|
Catch ex As Exception
|
||||||
_Logger.Error(ex)
|
_Logger.Error(ex)
|
||||||
MsgBox(ex.Message, MsgBoxStyle.Critical, "DeleteControl:")
|
MsgBox(ex.Message, MsgBoxStyle.Critical, "DeleteControl:")
|
||||||
End Try
|
End Try
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
|
||||||
' +++ Public Helper Methods +++
|
' +++ Public Helper Methods +++
|
||||||
Public Function GetCursorPosition() As Point
|
Public Function GetCursorPosition() As Point
|
||||||
Return pnldesigner.PointToClient(Cursor.Position)
|
Return pnldesigner.PointToClient(Cursor.Position)
|
||||||
@ -1261,6 +1276,51 @@ Public Class frmFormDesigner
|
|||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub bbtniwidth_plus_ItemClick(sender As Object, e As DevExpress.XtraBars.ItemClickEventArgs) Handles bbtniwidth_plus.ItemClick
|
Private Sub bbtniwidth_plus_ItemClick(sender As Object, e As DevExpress.XtraBars.ItemClickEventArgs) Handles bbtniwidth_plus.ItemClick
|
||||||
|
Width_Plus()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub bbtniwidth_min_ItemClick(sender As Object, e As DevExpress.XtraBars.ItemClickEventArgs) Handles bbtniwidth_min.ItemClick
|
||||||
|
Width_Min()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub bbtniheight_min_ItemClick(sender As Object, e As DevExpress.XtraBars.ItemClickEventArgs) Handles bbtniheight_min.ItemClick
|
||||||
|
Height_minus()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub bbtniheight_plus_ItemClick(sender As Object, e As DevExpress.XtraBars.ItemClickEventArgs) Handles bbtniheight_plus.ItemClick
|
||||||
|
Height_plus()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
|
||||||
|
Private Sub frmFormDesigner_KeyDown(sender As Object, e As KeyEventArgs) Handles Me.KeyDown
|
||||||
|
|
||||||
|
If e.Control AndAlso (e.KeyCode = e.KeyCode.Add Or e.KeyCode = e.KeyCode.Oemplus) Then
|
||||||
|
Height_plus()
|
||||||
|
|
||||||
|
ElseIf e.Control AndAlso (e.KeyCode = e.KeyCode.Subtract Or e.KeyCode = e.KeyCode.Oemplus) Then
|
||||||
|
Height_minus()
|
||||||
|
Else
|
||||||
|
Console.WriteLine("e.keycode: " + e.KeyCode.ToString)
|
||||||
|
If e.KeyCode = e.KeyCode.Delete Then
|
||||||
|
Control_Delete()
|
||||||
|
ElseIf e.KeyCode = e.KeyCode.F5 Then
|
||||||
|
LoadControls()
|
||||||
|
tslblAenderungen.Caption = "Controls loaded - " + Now.ToString
|
||||||
|
ElseIf e.KeyCode = Keys.Escape Then
|
||||||
|
If Me.Cursor = Cursors.Cross Then
|
||||||
|
Mouse_IsPressed = False
|
||||||
|
Me.Cursor = Cursors.Default
|
||||||
|
End If
|
||||||
|
ElseIf (e.KeyCode = e.KeyCode.Add Or e.KeyCode = e.KeyCode.Oemplus) Then
|
||||||
|
Width_Plus()
|
||||||
|
ElseIf (e.KeyCode = e.KeyCode.Subtract Or e.KeyCode = e.KeyCode.Oemplus) Then
|
||||||
|
Width_Min()
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
|
||||||
|
|
||||||
|
End Sub
|
||||||
|
Sub Width_Plus()
|
||||||
If CurrentControl Is Nothing = False Then
|
If CurrentControl Is Nothing = False Then
|
||||||
CurrentControl.Size = New Size(CurrentControl.Width + 5, CurrentControl.Height)
|
CurrentControl.Size = New Size(CurrentControl.Width + 5, CurrentControl.Height)
|
||||||
DirectCast(pgControlsNew.SelectedObject, BaseProperties).Size = CurrentControl.Size
|
DirectCast(pgControlsNew.SelectedObject, BaseProperties).Size = CurrentControl.Size
|
||||||
@ -1269,8 +1329,7 @@ Public Class frmFormDesigner
|
|||||||
UpdateSingleValue("WIDTH", CurrentControl.Size.Width)
|
UpdateSingleValue("WIDTH", CurrentControl.Size.Width)
|
||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
|
Sub Width_Min()
|
||||||
Private Sub bbtniwidth_min_ItemClick(sender As Object, e As DevExpress.XtraBars.ItemClickEventArgs) Handles bbtniwidth_min.ItemClick
|
|
||||||
If CurrentControl Is Nothing = False Then
|
If CurrentControl Is Nothing = False Then
|
||||||
Dim newWidth = CurrentControl.Width - 5
|
Dim newWidth = CurrentControl.Width - 5
|
||||||
' Verhindert, dass das Control unsichtbar wird
|
' Verhindert, dass das Control unsichtbar wird
|
||||||
@ -1285,7 +1344,7 @@ Public Class frmFormDesigner
|
|||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub bbtniheight_min_ItemClick(sender As Object, e As DevExpress.XtraBars.ItemClickEventArgs) Handles bbtniheight_min.ItemClick
|
Sub Height_minus()
|
||||||
If CurrentControl Is Nothing = False Then
|
If CurrentControl Is Nothing = False Then
|
||||||
Dim newHeight As Integer = CurrentControl.Height - 5
|
Dim newHeight As Integer = CurrentControl.Height - 5
|
||||||
|
|
||||||
@ -1307,7 +1366,7 @@ Public Class frmFormDesigner
|
|||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub bbtniheight_plus_ItemClick(sender As Object, e As DevExpress.XtraBars.ItemClickEventArgs) Handles bbtniheight_plus.ItemClick
|
Sub Height_plus()
|
||||||
If CurrentControl Is Nothing = False Then
|
If CurrentControl Is Nothing = False Then
|
||||||
Dim newHeight As Integer = CurrentControl.Height + 5
|
Dim newHeight As Integer = CurrentControl.Height + 5
|
||||||
|
|
||||||
@ -1324,5 +1383,4 @@ Public Class frmFormDesigner
|
|||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
|
||||||
End Class
|
End Class
|
||||||
Loading…
x
Reference in New Issue
Block a user