private void btnCustomErrorAudit_Click(object sender, EventArgs e)
        {
            var i = 1;

            foreach (var app in _apps)
            {
                var customErrors = new CustomErrorsService(app.FtpSettings);
                if (!customErrors.Get())
                {
                    var result = MessageBox.Show($"({i}/{_apps.Count}) {app.Name} - customErrors are OFF! Users will see exceptions.", "",
                                                 MessageBoxButtons.OKCancel);

                    if (result == DialogResult.Cancel)
                    {
                        return;
                    }
                }
                i++;
            }
        }
Beispiel #2
0
 public FrmCustomErrors(FtpSettings settings)
 {
     InitializeComponent();
     _customErrors = new CustomErrorsService(settings);
 }