Example #1
0
 public StateReportRender()
 {
     InitializeComponent();
     this.progressBar1.Value   = 0;
     progressBar1.DisplayStyle = ProgressBarDisplayText.CustomText;
     PlusOne    = plusOne;
     MyClose    = myclose;
     SetMaximum = setMaximum;
     changeLoadingSentence();
 }
Example #2
0
 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;
     }
 }
Example #3
0
        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;
        }