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.

56 lines
1.3 KiB

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;
this.label3.Text = "";
}
private void DialogGenerate_Load(object sender, EventArgs e)
{
progressBar1.Minimum = 0;
progressBar1.Maximum = 100;
progressBar1.Value = 0;
}
public void set_progress(int value, string text)
{
this.label3.Text=text;
try
{
progressBar1.Value = value;
}
catch { }
Application.DoEvents();
}
public void add_progress(int value, string text)
{
this.label3.Text = text;
try
{
progressBar1.Value += value;
}
catch { }
Application.DoEvents();
}
}
}