Esempio n. 1
0
        public FormLoadingProgress(LengthyOperation operaton, object objArgument)
        {
            InitializeComponent();

            this.BackColor = MainForm.ColorBackground;

            //////////////////////////////////////////////////////////////////////////

            _operation = operaton;

            _objArgument = objArgument;
        }
Esempio n. 2
0
        public FormGenericProgress(string strOperation, LengthyOperation operaton, object objArgument, bool bDeterminated)
        {
            InitializeComponent();

            this.BackColor = MainForm.ColorBackground;

            //////////////////////////////////////////////////////////////////////////

            this.Text = strOperation;

            _operation = operaton;

            _objArgument = objArgument;

            progress.Style = bDeterminated ? ProgressBarStyle.Blocks : ProgressBarStyle.Marquee;

            this.CancellationEnabled = true;
        }