예제 #1
0
        /// ------------------------------------------------------------------------------------
        protected override void OnShown(EventArgs e)
        {
            base.OnShown(e);

            try
            {
                WaitCursor.Show();
                _viewModel.IncrementProgressBarAction = () => _progressBar.Increment(1);
                _buttonCreatePackage.Enabled          = _viewModel.Initialize();
                _logBox.ScrollToTop();
                _progressBar.Maximum = _viewModel.CalculateMaxProgressBarValue();
                WaitCursor.Hide();
            }
            catch
            {
                WaitCursor.Hide();
                throw;
            }
        }