public StateReportRender() { InitializeComponent(); this.progressBar1.Value = 0; progressBar1.DisplayStyle = ProgressBarDisplayText.CustomText; PlusOne = plusOne; MyClose = myclose; SetMaximum = setMaximum; changeLoadingSentence(); }
public static void SetMaximum(NumericUpDown ctrl, decimal val) { if (ctrl.InvokeRequired) { SetMaximumDelegate del = new SetMaximumDelegate(SetMaximum); ctrl.Invoke(del, ctrl, val); } else { ctrl.Maximum = val; } }
public ProgressBarWindow() { // // Required for Windows Form Designer support // InitializeComponent(); // // TODO: Add any constructor code after InitializeComponent call // pBar.Maximum = InternalMax; SetVal(0); SetMax(InternalMax); setVal = new SetValueDelegate(SetVal); setMax = new SetMaximumDelegate(SetMax); this.Text = Resources.ProgressTitle; }