예제 #1
0
 void progressObject_OnStatusChange(object myObject, StatusChangeArgs args)
 {
     _status = args;
     if (this.Visible == true)
     {
         UpdateDialog();
     }
 }
예제 #2
0
        public SplashScreen(IProvideStatus progressObject)
        {
            _progressObject = progressObject;
            _progressObject.StatusChange += new StatusChangeHandler(progressObject_OnStatusChange);

            InitializeComponent();
            lblStatus.Text = "";
            _status = new StatusChangeArgs(0, 0, "", "", false);
        }
        public ProgressDialog(string caption, IProvideStatus progressObject)
        {
            InitializeComponent();

            this.Text = caption;
            lblSection.Text = "";
            lblSectionStatus.Text = "";
            lstStatusHistory.Items.Clear();
            status = new StatusChangeArgs(0, 0, "", "", false);

            sections = new List<string>();
            // Default to cancelled status so if the user closes the window at any time the code can cancel out
            // of whatever it is doing correctly
            this.DialogResult = DialogResult.Cancel;

            _progressObject = progressObject;
        }
 void progressObject_OnStatusChange(object myObject, StatusChangeArgs args)
 {
     status = args;
     UpdateDialog();
 }
예제 #5
0
 void child_StatusChange(object myObject, StatusChangeArgs args)
 {
     if (StatusChange != null)
     {
         StatusChange(null, args);
     }
 }
        void ViewUnacknowledgedAssets_StatusChange(object myObject, StatusChangeArgs args)
        {
            _status = args;

            if (_status.Done && _status.Section.Equals("FinalTasks"))
            {
                Finish();
            }
            else
            {
                UpdateProgress();
            }
        }