Files
OnDoc/OnDocOffice/DialogGenerate.cs
Stefan Hutter 3b0a2b0527 update 20250102
2025-01-02 19:18:08 +01:00

45 lines
1010 B
C#

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace OnDocOffice
{
public partial class DialogGenerate : Form
{
public DialogGenerate()
{
InitializeComponent();
}
public DialogGenerate(string bez)
{
InitializeComponent();
this.label2.Text = bez;
}
private void DialogGenerate_Load(object sender, EventArgs e)
{
progressBar1.Minimum = 0;
progressBar1.Maximum = 100;
progressBar1.Value = 0;
}
public void set_progress(int value)
{
progressBar1.Value = value;
Application.DoEvents();
}
public void add_progress(int value)
{
progressBar1.Value += value;
Application.DoEvents();
}
}
}