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); } }
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); } }