コード例 #1
0
        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);
        }
コード例 #2
0
        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);
            }
        }