This repository has been archived on 2023-01-27. You can view files and clone it, but cannot push or open issues or pull requests.
cad/ref/swex/add-in/progress-handler/ProgressHandler/ProgressForm.cs
2022-10-15 19:16:08 +02:00

37 lines
759 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 CodeStack.ProgressHandler
{
public partial class ProgressForm : Form
{
public ProgressForm()
{
InitializeComponent();
}
public void Init(string title, int upperBound)
{
lblMessage.Text = title;
prgProgress.Maximum = upperBound;
}
public void SetTitle(string title)
{
lblMessage.Text = title;
}
public void SetProgress(int pos)
{
prgProgress.Value = pos;
}
}
}