You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

45 lines
1010 B

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();
}
}
}