using System; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; using System.Reflection; using System.Windows.Forms; namespace ProfileEventViewer { partial class Processing : Form { public Processing() { InitializeComponent(); this.progressBar1.Maximum = 100; } public void SetProgressName(string val) { if (val.Length > 60) { this.Text = String.Format("{0}...{1}", val.Substring(0, 20), val.Substring(val.Length - 40)); } else { this.Text = val; } } public void SetProgressRatio(int val/*over 100*/) { this.progressBar1.Value = val; } } }