update 20260522
This commit is contained in:
+30
-6
@@ -28,8 +28,8 @@
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
Syncfusion.Windows.Forms.Edit.Implementation.Config.Config config1 = new Syncfusion.Windows.Forms.Edit.Implementation.Config.Config();
|
||||
Syncfusion.Windows.Forms.Edit.Implementation.Config.Config config2 = new Syncfusion.Windows.Forms.Edit.Implementation.Config.Config();
|
||||
Syncfusion.Windows.Forms.Edit.Implementation.Config.Config config5 = new Syncfusion.Windows.Forms.Edit.Implementation.Config.Config();
|
||||
Syncfusion.Windows.Forms.Edit.Implementation.Config.Config config6 = new Syncfusion.Windows.Forms.Edit.Implementation.Config.Config();
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.txtexcelinput = new System.Windows.Forms.TextBox();
|
||||
this.label2 = new System.Windows.Forms.Label();
|
||||
@@ -78,11 +78,13 @@
|
||||
this.flowLayoutPanel1 = new System.Windows.Forms.FlowLayoutPanel();
|
||||
this.button4 = new System.Windows.Forms.Button();
|
||||
this.button5 = new System.Windows.Forms.Button();
|
||||
this.progressBarAdv1 = new Syncfusion.Windows.Forms.Tools.ProgressBarAdv();
|
||||
((System.ComponentModel.ISupportInitialize)(this.sfDataGrid1)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.editControl1)).BeginInit();
|
||||
this.panel1.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.editControl2)).BeginInit();
|
||||
this.flowLayoutPanel1.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.progressBarAdv1)).BeginInit();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// label1
|
||||
@@ -349,7 +351,7 @@
|
||||
//
|
||||
// button2
|
||||
//
|
||||
this.button2.Location = new System.Drawing.Point(389, 489);
|
||||
this.button2.Location = new System.Drawing.Point(482, 401);
|
||||
this.button2.Name = "button2";
|
||||
this.button2.Size = new System.Drawing.Size(105, 23);
|
||||
this.button2.TabIndex = 35;
|
||||
@@ -427,7 +429,7 @@
|
||||
this.editControl1.AllowZoom = false;
|
||||
this.editControl1.ChangedLinesMarkingLineColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(238)))), ((int)(((byte)(98)))));
|
||||
this.editControl1.CodeSnipptSize = new System.Drawing.Size(100, 100);
|
||||
this.editControl1.Configurator = config1;
|
||||
this.editControl1.Configurator = config5;
|
||||
this.editControl1.ContextChoiceBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
|
||||
this.editControl1.ContextChoiceBorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(233)))), ((int)(((byte)(166)))), ((int)(((byte)(50)))));
|
||||
this.editControl1.ContextChoiceForeColor = System.Drawing.SystemColors.InfoText;
|
||||
@@ -478,7 +480,7 @@
|
||||
this.editControl2.BackgroundColor = new Syncfusion.Drawing.BrushInfo(System.Drawing.Color.Bisque);
|
||||
this.editControl2.ChangedLinesMarkingLineColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(238)))), ((int)(((byte)(98)))));
|
||||
this.editControl2.CodeSnipptSize = new System.Drawing.Size(100, 100);
|
||||
this.editControl2.Configurator = config2;
|
||||
this.editControl2.Configurator = config6;
|
||||
this.editControl2.ContextChoiceBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
|
||||
this.editControl2.ContextChoiceBorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(233)))), ((int)(((byte)(166)))), ((int)(((byte)(50)))));
|
||||
this.editControl2.ContextChoiceForeColor = System.Drawing.SystemColors.InfoText;
|
||||
@@ -531,7 +533,7 @@
|
||||
//
|
||||
// button5
|
||||
//
|
||||
this.button5.Location = new System.Drawing.Point(389, 406);
|
||||
this.button5.Location = new System.Drawing.Point(482, 372);
|
||||
this.button5.Name = "button5";
|
||||
this.button5.Size = new System.Drawing.Size(105, 23);
|
||||
this.button5.TabIndex = 46;
|
||||
@@ -539,11 +541,31 @@
|
||||
this.button5.UseVisualStyleBackColor = true;
|
||||
this.button5.Click += new System.EventHandler(this.button5_Click);
|
||||
//
|
||||
// progressBarAdv1
|
||||
//
|
||||
this.progressBarAdv1.BackMultipleColors = new System.Drawing.Color[] {
|
||||
System.Drawing.Color.Empty};
|
||||
this.progressBarAdv1.BackSegments = false;
|
||||
this.progressBarAdv1.CustomText = null;
|
||||
this.progressBarAdv1.CustomWaitingRender = false;
|
||||
this.progressBarAdv1.ForegroundImage = null;
|
||||
this.progressBarAdv1.Location = new System.Drawing.Point(20, 529);
|
||||
this.progressBarAdv1.MultipleColors = new System.Drawing.Color[] {
|
||||
System.Drawing.Color.Empty};
|
||||
this.progressBarAdv1.Name = "progressBarAdv1";
|
||||
this.progressBarAdv1.SegmentWidth = 12;
|
||||
this.progressBarAdv1.Size = new System.Drawing.Size(567, 23);
|
||||
this.progressBarAdv1.TabIndex = 47;
|
||||
this.progressBarAdv1.Text = "progressBarAdv1";
|
||||
this.progressBarAdv1.Visible = false;
|
||||
this.progressBarAdv1.WaitingGradientWidth = 400;
|
||||
//
|
||||
// Form1
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(1645, 914);
|
||||
this.Controls.Add(this.progressBarAdv1);
|
||||
this.Controls.Add(this.panel1);
|
||||
this.Controls.Add(this.button5);
|
||||
this.Controls.Add(this.editControl1);
|
||||
@@ -597,6 +619,7 @@
|
||||
this.panel1.ResumeLayout(false);
|
||||
((System.ComponentModel.ISupportInitialize)(this.editControl2)).EndInit();
|
||||
this.flowLayoutPanel1.ResumeLayout(false);
|
||||
((System.ComponentModel.ISupportInitialize)(this.progressBarAdv1)).EndInit();
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
@@ -652,6 +675,7 @@
|
||||
private System.Windows.Forms.Button button4;
|
||||
private System.Windows.Forms.Button button5;
|
||||
private System.Windows.Forms.FlowLayoutPanel flowLayoutPanel1;
|
||||
private Syncfusion.Windows.Forms.Tools.ProgressBarAdv progressBarAdv1;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -77,13 +77,16 @@ namespace Tool_API_Dokumentgenerator
|
||||
Import_sf_Excel(datapath+txtexcelinput.Text, selected_sheetname, ref importdata);
|
||||
DataView dv = new DataView(importdata ); dv.Sort = txtspalten.Text.Replace(";", ",");
|
||||
importdata.DefaultView.Sort = txtspalten.Text.Replace(";", ",");
|
||||
|
||||
progressBarAdv1.Visible = true;
|
||||
string oldkey = "";
|
||||
int counter = 0;
|
||||
|
||||
progressBarAdv1.Minimum = 0;
|
||||
progressBarAdv1.Maximum = dv.Count;
|
||||
progressBarAdv1.Value = 0;
|
||||
System.Windows.Forms.Application.DoEvents();
|
||||
foreach (DataRowView rowView in dv)
|
||||
{
|
||||
|
||||
progressBarAdv1.Value++;
|
||||
DataRow row = rowView.Row;
|
||||
if (oldkey != row[txtdokumenttrenner.Text].ToString())
|
||||
{
|
||||
@@ -201,6 +204,7 @@ namespace Tool_API_Dokumentgenerator
|
||||
}
|
||||
}
|
||||
}
|
||||
progressBarAdv1.Visible = false;
|
||||
}
|
||||
private void Import_sf_Excel(string filename, string sheetname, ref System.Data.DataTable importdata)
|
||||
{
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user