Public Class MainForm
    Inherits System.Windows.Forms.Form

#Region " Windows Form Designer generated code "

    Public Sub New()
        MyBase.New()

        'This call is required by the Windows Form Designer.
        InitializeComponent()

        'Add any initialization after the InitializeComponent() call

    End Sub

    'Form overrides dispose to clean up the component list.
    Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
        If disposing Then
            If Not (components Is Nothing) Then
                components.Dispose()
            End If
        End If
        MyBase.Dispose(disposing)
    End Sub
    Friend WithEvents C1DataSet1 As C1.Data.C1DataSet
    Friend WithEvents tabControl1 As System.Windows.Forms.TabControl
    Friend WithEvents tabPage2 As System.Windows.Forms.TabPage
    Friend WithEvents label11 As System.Windows.Forms.Label
    Friend WithEvents label15 As System.Windows.Forms.Label
    Friend WithEvents label14 As System.Windows.Forms.Label
    Friend WithEvents label13 As System.Windows.Forms.Label
    Friend WithEvents label12 As System.Windows.Forms.Label
    Friend WithEvents label10 As System.Windows.Forms.Label
    Friend WithEvents label9 As System.Windows.Forms.Label
    Friend WithEvents label1 As System.Windows.Forms.Label
    Friend WithEvents tabPage1 As System.Windows.Forms.TabPage
    Friend WithEvents label8 As System.Windows.Forms.Label
    Friend WithEvents label7 As System.Windows.Forms.Label
    Friend WithEvents label6 As System.Windows.Forms.Label
    Friend WithEvents label5 As System.Windows.Forms.Label
    Friend WithEvents label4 As System.Windows.Forms.Label
    Friend WithEvents label3 As System.Windows.Forms.Label
    Friend WithEvents label2 As System.Windows.Forms.Label
    Friend WithEvents btnClose As System.Windows.Forms.Button
    Friend WithEvents btnRefresh As System.Windows.Forms.Button
    Friend WithEvents gridCustomersOrders As C1.Win.C1TrueDBGrid.C1TrueDBGrid
    Friend WithEvents gridProducts As C1.Win.C1TrueDBGrid.C1TrueDBGrid

    'Required by the Windows Form Designer
    Private components As System.ComponentModel.IContainer

    'NOTE: The following procedure is required by the Windows Form Designer
    'It can be modified using the Windows Form Designer.  
    'Do not modify it using the code editor.
    <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
        Dim resources As System.Resources.ResourceManager = New System.Resources.ResourceManager(GetType(MainForm))
        Me.C1DataSet1 = New C1.Data.C1DataSet()
        Me.tabControl1 = New System.Windows.Forms.TabControl()
        Me.tabPage2 = New System.Windows.Forms.TabPage()
        Me.gridCustomersOrders = New C1.Win.C1TrueDBGrid.C1TrueDBGrid()
        Me.label11 = New System.Windows.Forms.Label()
        Me.label15 = New System.Windows.Forms.Label()
        Me.label14 = New System.Windows.Forms.Label()
        Me.label13 = New System.Windows.Forms.Label()
        Me.label12 = New System.Windows.Forms.Label()
        Me.label10 = New System.Windows.Forms.Label()
        Me.label9 = New System.Windows.Forms.Label()
        Me.label1 = New System.Windows.Forms.Label()
        Me.tabPage1 = New System.Windows.Forms.TabPage()
        Me.gridProducts = New C1.Win.C1TrueDBGrid.C1TrueDBGrid()
        Me.label8 = New System.Windows.Forms.Label()
        Me.label7 = New System.Windows.Forms.Label()
        Me.label6 = New System.Windows.Forms.Label()
        Me.label5 = New System.Windows.Forms.Label()
        Me.label4 = New System.Windows.Forms.Label()
        Me.label3 = New System.Windows.Forms.Label()
        Me.label2 = New System.Windows.Forms.Label()
        Me.btnClose = New System.Windows.Forms.Button()
        Me.btnRefresh = New System.Windows.Forms.Button()
        CType(Me.C1DataSet1, System.ComponentModel.ISupportInitialize).BeginInit()
        Me.tabControl1.SuspendLayout()
        Me.tabPage2.SuspendLayout()
        CType(Me.gridCustomersOrders, System.ComponentModel.ISupportInitialize).BeginInit()
        Me.tabPage1.SuspendLayout()
        CType(Me.gridProducts, System.ComponentModel.ISupportInitialize).BeginInit()
        Me.SuspendLayout()
        '
        'C1DataSet1
        '
        Me.C1DataSet1.BindingContextCtrl = Nothing
        Me.C1DataSet1.DataLibrary = "DataLibrary"
        Me.C1DataSet1.DataLibraryUrl = ""
        Me.C1DataSet1.DataSetDef = "DataSet1"
        Me.C1DataSet1.Locale = New System.Globalization.CultureInfo("en-US")
        Me.C1DataSet1.SchemaClassName = "DataLibrary.DataClass"
        Me.C1DataSet1.SchemaDef = Nothing
        Me.C1DataSet1.SuppressNotifications = False
        '
        'tabControl1
        '
        Me.tabControl1.Controls.AddRange(New System.Windows.Forms.Control() {Me.tabPage2, Me.tabPage1})
        Me.tabControl1.Location = New System.Drawing.Point(8, 8)
        Me.tabControl1.Name = "tabControl1"
        Me.tabControl1.SelectedIndex = 0
        Me.tabControl1.Size = New System.Drawing.Size(468, 352)
        Me.tabControl1.TabIndex = 1
        '
        'tabPage2
        '
        Me.tabPage2.Controls.AddRange(New System.Windows.Forms.Control() {Me.gridCustomersOrders, Me.label11, Me.label15, Me.label14, Me.label13, Me.label12, Me.label10, Me.label9, Me.label1})
        Me.tabPage2.Location = New System.Drawing.Point(4, 22)
        Me.tabPage2.Name = "tabPage2"
        Me.tabPage2.Size = New System.Drawing.Size(460, 326)
        Me.tabPage2.TabIndex = 1
        Me.tabPage2.Text = "Table Constraints"
        '
        'gridCustomersOrders
        '
        Me.gridCustomersOrders.AllowFilter = True
        Me.gridCustomersOrders.AllowRowSizing = C1.Win.C1TrueDBGrid.RowSizingEnum.AllRows
        Me.gridCustomersOrders.AllowSort = True
        Me.gridCustomersOrders.CaptionHeight = 17
        Me.gridCustomersOrders.CollapseColor = System.Drawing.Color.Black
        Me.gridCustomersOrders.DataChanged = False
        Me.gridCustomersOrders.DataMember = "CustomersOrders"
        Me.gridCustomersOrders.DataSource = Me.C1DataSet1
        Me.gridCustomersOrders.BackColor = System.Drawing.Color.Empty
        Me.gridCustomersOrders.ExpandColor = System.Drawing.Color.Black
        Me.gridCustomersOrders.Images.Add(CType(resources.GetObject("resource.Images"), System.Drawing.Bitmap))
        Me.gridCustomersOrders.Location = New System.Drawing.Point(12, 146)
        Me.gridCustomersOrders.MarqueeStyle = C1.Win.C1TrueDBGrid.MarqueeEnum.DottedCellBorder
        Me.gridCustomersOrders.Name = "gridCustomersOrders"
        Me.gridCustomersOrders.PreviewInfo.Location = New System.Drawing.Point(0, 0)
        Me.gridCustomersOrders.PreviewInfo.Size = New System.Drawing.Size(0, 0)
        Me.gridCustomersOrders.PreviewInfo.ZoomFactor = 75
        Me.gridCustomersOrders.RecordSelectorWidth = 16
        Me.gridCustomersOrders.RowHeight = 15
        Me.gridCustomersOrders.RowSubDividerColor = System.Drawing.Color.DarkGray
        Me.gridCustomersOrders.ScrollTips = False
        Me.gridCustomersOrders.Size = New System.Drawing.Size(436, 168)
        Me.gridCustomersOrders.TabIndex = 10
        Me.gridCustomersOrders.Text = "C1TrueDBGrid1"
        Me.gridCustomersOrders.PropBag = CType(resources.GetObject("gridCustomersOrders.PropBag"), String)
        '
        'label11
        '
        Me.label11.Location = New System.Drawing.Point(12, 120)
        Me.label11.Name = "label11"
        Me.label11.Size = New System.Drawing.Size(424, 16)
        Me.label11.TabIndex = 9
        Me.label11.Text = "Country<>'Venezuela' OR RequiredDate>=#3/1/2002#, if OrderDate>#1/1/2002#"
        '
        'label15
        '
        Me.label15.Location = New System.Drawing.Point(12, 32)
        Me.label15.Name = "label15"
        Me.label15.Size = New System.Drawing.Size(212, 16)
        Me.label15.TabIndex = 8
        Me.label15.Text = "1. SUBSTRING(CompanyName,1,1)<>'@'"
        '
        'label14
        '
        Me.label14.Location = New System.Drawing.Point(184, 76)
        Me.label14.Name = "label14"
        Me.label14.Size = New System.Drawing.Size(156, 16)
        Me.label14.TabIndex = 7
        Me.label14.Text = "2. OrderDate < ShippedDate"
        '
        'label13
        '
        Me.label13.Location = New System.Drawing.Point(12, 76)
        Me.label13.Name = "label13"
        Me.label13.Size = New System.Drawing.Size(160, 16)
        Me.label13.TabIndex = 6
        Me.label13.Text = "1. OrderDate < RequiredDate"
        '
        'label12
        '
        Me.label12.Location = New System.Drawing.Point(232, 32)
        Me.label12.Name = "label12"
        Me.label12.Size = New System.Drawing.Size(216, 16)
        Me.label12.TabIndex = 5
        Me.label12.Text = "2. Country<>'Cuba'"
        '
        'label10
        '
        Me.label10.Font = New System.Drawing.Font("Tahoma", 8.25!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.label10.Location = New System.Drawing.Point(12, 100)
        Me.label10.Name = "label10"
        Me.label10.Size = New System.Drawing.Size(372, 16)
        Me.label10.TabIndex = 3
        Me.label10.Text = "Record level constraints for composite table CustomersOrders:"
        '
        'label9
        '
        Me.label9.Font = New System.Drawing.Font("Tahoma", 8.25!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.label9.Location = New System.Drawing.Point(12, 56)
        Me.label9.Name = "label9"
        Me.label9.Size = New System.Drawing.Size(288, 16)
        Me.label9.TabIndex = 2
        Me.label9.Text = "Record level constraints for simple table Orders:"
        '
        'label1
        '
        Me.label1.Font = New System.Drawing.Font("Tahoma", 8.25!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.label1.Location = New System.Drawing.Point(8, 12)
        Me.label1.Name = "label1"
        Me.label1.Size = New System.Drawing.Size(300, 16)
        Me.label1.TabIndex = 1
        Me.label1.Text = "Field level constraints for simple table Customers:"
        '
        'tabPage1
        '
        Me.tabPage1.Controls.AddRange(New System.Windows.Forms.Control() {Me.gridProducts, Me.label8, Me.label7, Me.label6, Me.label5, Me.label4, Me.label3, Me.label2})
        Me.tabPage1.Location = New System.Drawing.Point(4, 22)
        Me.tabPage1.Name = "tabPage1"
        Me.tabPage1.Size = New System.Drawing.Size(460, 326)
        Me.tabPage1.TabIndex = 0
        Me.tabPage1.Text = "TableView Constraints"
        Me.tabPage1.Visible = False
        '
        'gridProducts
        '
        Me.gridProducts.AllowFilter = True
        Me.gridProducts.AllowRowSizing = C1.Win.C1TrueDBGrid.RowSizingEnum.AllRows
        Me.gridProducts.AllowSort = True
        Me.gridProducts.CaptionHeight = 17
        Me.gridProducts.CollapseColor = System.Drawing.Color.Black
        Me.gridProducts.DataChanged = False
        Me.gridProducts.DataMember = "Products"
        Me.gridProducts.DataSource = Me.C1DataSet1
        Me.gridProducts.BackColor = System.Drawing.Color.Empty
        Me.gridProducts.ExpandColor = System.Drawing.Color.Black
        Me.gridProducts.Images.Add(CType(resources.GetObject("resource.Images1"), System.Drawing.Bitmap))
        Me.gridProducts.Location = New System.Drawing.Point(12, 130)
        Me.gridProducts.MarqueeStyle = C1.Win.C1TrueDBGrid.MarqueeEnum.DottedCellBorder
        Me.gridProducts.Name = "gridProducts"
        Me.gridProducts.PreviewInfo.Location = New System.Drawing.Point(0, 0)
        Me.gridProducts.PreviewInfo.Size = New System.Drawing.Size(0, 0)
        Me.gridProducts.PreviewInfo.ZoomFactor = 75
        Me.gridProducts.RecordSelectorWidth = 16
        Me.gridProducts.RowHeight = 15
        Me.gridProducts.RowSubDividerColor = System.Drawing.Color.DarkGray
        Me.gridProducts.ScrollTips = False
        Me.gridProducts.Size = New System.Drawing.Size(436, 184)
        Me.gridProducts.TabIndex = 9
        Me.gridProducts.Text = "C1TrueDBGrid1"
        Me.gridProducts.PropBag = CType(resources.GetObject("gridProducts.PropBag"), String)
        '
        'label8
        '
        Me.label8.Font = New System.Drawing.Font("Tahoma", 8.25!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.label8.Location = New System.Drawing.Point(12, 12)
        Me.label8.Name = "label8"
        Me.label8.Size = New System.Drawing.Size(212, 16)
        Me.label8.TabIndex = 8
        Me.label8.Text = "TableView record level constraints:"
        '
        'label7
        '
        Me.label7.Font = New System.Drawing.Font("Tahoma", 8.25!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.label7.Location = New System.Drawing.Point(12, 80)
        Me.label7.Name = "label7"
        Me.label7.Size = New System.Drawing.Size(344, 16)
        Me.label7.TabIndex = 7
        Me.label7.Text = "TableView field level constraints (belong to certain fields):"
        '
        'label6
        '
        Me.label6.Location = New System.Drawing.Point(12, 32)
        Me.label6.Name = "label6"
        Me.label6.Size = New System.Drawing.Size(392, 16)
        Me.label6.TabIndex = 6
        Me.label6.Text = "1. (UnitsInStock+UnitsOnOrder)*UnitPrice < 100000, when UnitPrice >= 100"
        '
        'label5
        '
        Me.label5.Location = New System.Drawing.Point(176, 100)
        Me.label5.Name = "label5"
        Me.label5.Size = New System.Drawing.Size(96, 16)
        Me.label5.TabIndex = 5
        Me.label5.Text = "2. UnitPrice > 0"
        '
        'label4
        '
        Me.label4.Location = New System.Drawing.Point(12, 52)
        Me.label4.Name = "label4"
        Me.label4.Size = New System.Drawing.Size(248, 16)
        Me.label4.TabIndex = 4
        Me.label4.Text = "2. UnitsOnOrder = 0, when Discontinued = true"
        '
        'label3
        '
        Me.label3.Location = New System.Drawing.Point(296, 100)
        Me.label3.Name = "label3"
        Me.label3.Size = New System.Drawing.Size(120, 16)
        Me.label3.TabIndex = 3
        Me.label3.Text = "3. ReorderLevel >= 0"
        '
        'label2
        '
        Me.label2.Location = New System.Drawing.Point(12, 100)
        Me.label2.Name = "label2"
        Me.label2.Size = New System.Drawing.Size(144, 16)
        Me.label2.TabIndex = 2
        Me.label2.Text = "1. LEN(ProductName) > 2"
        '
        'btnClose
        '
        Me.btnClose.Location = New System.Drawing.Point(400, 368)
        Me.btnClose.Name = "btnClose"
        Me.btnClose.TabIndex = 4
        Me.btnClose.Text = "Close"
        '
        'btnRefresh
        '
        Me.btnRefresh.Location = New System.Drawing.Point(316, 368)
        Me.btnRefresh.Name = "btnRefresh"
        Me.btnRefresh.TabIndex = 3
        Me.btnRefresh.Text = "Refresh"
        '
        'MainForm
        '
        Me.AutoScaleBaseSize = New System.Drawing.Size(5, 14)
        Me.ClientSize = New System.Drawing.Size(484, 399)
        Me.Controls.AddRange(New System.Windows.Forms.Control() {Me.tabControl1, Me.btnClose, Me.btnRefresh})
        Me.Font = New System.Drawing.Font("Tahoma", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle
        Me.MaximizeBox = False
        Me.Name = "MainForm"
        Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen
        Me.Text = "Constraints"
        CType(Me.C1DataSet1, System.ComponentModel.ISupportInitialize).EndInit()
        Me.tabControl1.ResumeLayout(False)
        Me.tabPage2.ResumeLayout(False)
        CType(Me.gridCustomersOrders, System.ComponentModel.ISupportInitialize).EndInit()
        Me.tabPage1.ResumeLayout(False)
        CType(Me.gridProducts, System.ComponentModel.ISupportInitialize).EndInit()
        Me.ResumeLayout(False)

    End Sub

#End Region

    Private Sub btnRefresh_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnRefresh.Click
        C1DataSet1.Fill()
    End Sub

    Private Sub btnClose_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnClose.Click
        Close()
    End Sub
End Class
