Exemplo n.º 1
0
        protected virtual void OnGetDataException(SchemaExceptionEventArgs e)
        {
            EventHandler <SchemaExceptionEventArgs> te = GetDataException;

            if (te != null)
            {
                te(this, e);
            }
            else
            {
                MessageBox.Show(e.Exception.Message, "Ошибка выполнения запроса", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
Exemplo n.º 2
0
        protected virtual void OnFormReadException(SchemaExceptionEventArgs e)
        {
            EventHandler <SchemaExceptionEventArgs> te = SchemaReadException;

            if (te != null)
            {
                te(this, e);
            }
            else
            {
                MessageBox.Show(e.Exception.Message, "Ошибка открытия формы", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }