Ejemplo n.º 1
0
        private void NotifyFeatureCommandsCollectionFinish(object sender, NotifyFeatureCommandsCollectionFinishEventArgs e)
        {
            if (e.Result.Success)
            {
                YesNo autoClose = Launcher.AutoClose;
                if (autoClose == YesNo.Yes)
                {
                    CloseForm();
                }

                if (UserInformationFirstLineLabel.InvokeRequired)
                {
                    var d = new SafeUpdateFinishButtonDelegate(UpdateFinishButton);
                    FeatureLabel.Invoke(d);
                }
                else
                {
                    UserInformationFirstLineLabel.Visible  = false;
                    UserInformationSecondLineLabel.Visible = false;
                    FinishButton.Visible = true;
                    FinishButton.Refresh();
                }
            }
            else
            {
                MessageBox.Show(e.Result.Errors.AsMessages().ToStringBuilder().ToString(), @"Error", MessageBoxButtons.OK);

                CloseForm();
            }
        }
Ejemplo n.º 2
0
 private void UpdateFinishButton()
 {
     UserInformationFirstLineLabel.Visible  = false;
     UserInformationSecondLineLabel.Visible = false;
     FinishButton.Visible = true;
     FinishButton.Refresh();
 }