private static void DataErrorOccured(object sender, DataErrorEventArgs args)
        {
            if (args.CallStackFull)
                Environment.Exit(-1);

            var form = new PersistenceErrorForm();
            form.textBoxDetail.Text = args.Message;
            // continue means, that user wants to retry
            if (form.ShowDialog() == DialogResult.Cancel)
                Environment.Exit(-1);
        }
        private static void DataErrorOccured(object sender, DataErrorEventArgs args)
        {
            if (args.CallStackFull)
            {
                Environment.Exit(-1);
            }

            var form = new PersistenceErrorForm();

            form.textBoxDetail.Text = args.Message;
            // continue means, that user wants to retry
            if (form.ShowDialog() == DialogResult.Cancel)
            {
                Environment.Exit(-1);
            }
        }