update 20250102
This commit is contained in:
44
OnDocOffice/DialogGenerate.cs
Normal file
44
OnDocOffice/DialogGenerate.cs
Normal file
@@ -0,0 +1,44 @@
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user