public void ShowStatus(string title, string desc, int max = 100, int value = 0) { if (StatusForm == null) { StatusForm = new UIStatusForm(); } StatusForm.Style = Style; StatusForm.Show(title, desc, max, value); }
private void CreateForm(int max, string desc, int decimalCount = 1) { CloseForm(); thread = new Thread(delegate() { form = new UIStatusForm(max, desc, decimalCount); form.VisibleChanged += WaitForm_VisibleChanged; Application.Run(form); IsRun = false; }); thread.Start(); }