Nach Update Syncfusion / Anpassungen Nativ

This commit is contained in:
Stefan Hutter
2024-09-18 09:57:27 +02:00
parent cb21f39e6b
commit d4b9318d96
1954 changed files with 2024537 additions and 116 deletions

View File

@@ -55,15 +55,18 @@
// treeView
//
this.treeView.Dock = System.Windows.Forms.DockStyle.Left;
this.treeView.DrawMode = System.Windows.Forms.TreeViewDrawMode.OwnerDrawText;
this.treeView.FullRowSelect = true;
this.treeView.HideSelection = false;
this.treeView.HotTracking = true;
this.treeView.ImageIndex = 0;
this.treeView.ImageList = this.imageList1;
this.treeView.Location = new System.Drawing.Point(2, 61);
this.treeView.Location = new System.Drawing.Point(2, 2);
this.treeView.Name = "treeView";
this.treeView.SelectedImageIndex = 0;
this.treeView.Size = new System.Drawing.Size(296, 387);
this.treeView.Size = new System.Drawing.Size(296, 446);
this.treeView.TabIndex = 1;
this.treeView.DrawNode += new System.Windows.Forms.DrawTreeNodeEventHandler(this.treeView_DrawNode);
this.treeView.NodeMouseDoubleClick += new System.Windows.Forms.TreeNodeMouseClickEventHandler(this.treeView_NodeMouseDoubleClick);
//
// fileSystemWatcher1
@@ -82,6 +85,7 @@
this.toolStrip1.Size = new System.Drawing.Size(529, 59);
this.toolStrip1.TabIndex = 2;
this.toolStrip1.Text = "toolStrip1";
this.toolStrip1.Visible = false;
//
// toolStripButton1
//
@@ -109,7 +113,7 @@
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(316, 61);
this.label1.Location = new System.Drawing.Point(316, 2);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(125, 13);
this.label1.TabIndex = 3;

View File

@@ -32,7 +32,28 @@ namespace OnDoc.Diverses
this.Style.TitleBar.ForeColor = Theaming.TitelFontColor();
}
private void treeView_DrawNode(object sender, DrawTreeNodeEventArgs e)
{
if (e.Node == null) return;
// if treeview's HideSelection property is "True",
// this will always returns "False" on unfocused treeview
var selected = (e.State & TreeNodeStates.Selected) == TreeNodeStates.Selected;
var unfocused = !e.Node.TreeView.Focused;
// we need to do owner drawing only on a selected node
// and when the treeview is unfocused, else let the OS do it for us
if (selected && unfocused)
{
var font = e.Node.NodeFont ?? e.Node.TreeView.Font;
e.Graphics.FillRectangle(SystemBrushes.Highlight, e.Bounds);
TextRenderer.DrawText(e.Graphics, e.Node.Text, font, e.Bounds, SystemColors.HighlightText, TextFormatFlags.GlyphOverhangPadding);
}
else
{
e.DrawDefault = true;
}
}
private void NativVorlagen_Load(object sender, EventArgs e)
{
@@ -54,6 +75,12 @@ namespace OnDoc.Diverses
}
sr.Close();
TotalKlassifizierung = i - 1;
try
{
RadioButton rb = this.Controls.Find("rb1", true).FirstOrDefault() as RadioButton;
rb.Checked = true;
}
catch { }
string ext = "";
DirectoryInfo directoryInfo = new DirectoryInfo(Properties.Settings.Default.NativVorlagen);
@@ -215,7 +242,7 @@ namespace OnDoc.Diverses
string klassifizierung = "";
try
{
for (int i = 0; i < TotalKlassifizierung; i++)
for (int i = 1; i < TotalKlassifizierung+1; i++)
{
RadioButton rb = this.Controls.Find("rb" + i.ToString(), true).FirstOrDefault() as RadioButton;
if (rb != null)

View File

@@ -125,7 +125,7 @@
AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w
LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0
ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAAB4
DAAAAk1TRnQBSQFMAgEBBQEAATABAAEwAQABEAEAARABAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo
DAAAAk1TRnQBSQFMAgEBBQEAATgBAAE4AQABEAEAARABAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo
AwABQAMAASADAAEBAQABCAYAAQgYAAGAAgABgAMAAoABAAGAAwABgAEAAYABAAKAAgADwAEAAcAB3AHA
AQAB8AHKAaYBAAEzBQABMwEAATMBAAEzAQACMwIAAxYBAAMcAQADIgEAAykBAANVAQADTQEAA0IBAAM5
AQABgAF8Af8BAAJQAf8BAAGTAQAB1gEAAf8B7AHMAQABxgHWAe8BAAHWAucBAAGQAakBrQIAAf8BMwMA