示例#1
0
文件: DBGrid.cs 项目: S031/MetaStack
        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);
            }
        }
示例#2
0
文件: DBGrid.cs 项目: S031/MetaStack
        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);
            }
        }