VERSION 5.00
Begin VB.Form frm1 
   BackColor       =   &H0080C0FF&
   Caption         =   "Òðèããåð"
   ClientHeight    =   3624
   ClientLeft      =   3360
   ClientTop       =   2676
   ClientWidth     =   5436
   LinkTopic       =   "Form1"
   ScaleHeight     =   3624
   ScaleWidth      =   5436
   Begin VB.TextBox txtQ1 
      Height          =   375
      Left            =   4320
      TabIndex        =   11
      Top             =   1920
      Width           =   855
   End
   Begin VB.TextBox txtQ2 
      Height          =   375
      Left            =   4320
      TabIndex        =   8
      Top             =   720
      Width           =   855
   End
   Begin VB.CommandButton cmdReset 
      Caption         =   "Reset"
      Height          =   495
      Left            =   3480
      TabIndex        =   5
      Top             =   2760
      Width           =   975
   End
   Begin VB.CommandButton cmdSet 
      Caption         =   "Set"
      Height          =   495
      Left            =   960
      TabIndex        =   4
      Top             =   2760
      Width           =   975
   End
   Begin VB.TextBox txtOr2Out 
      Height          =   375
      Left            =   2280
      TabIndex        =   3
      Top             =   1920
      Width           =   735
   End
   Begin VB.TextBox txtOr1Out 
      Height          =   375
      Left            =   2280
      TabIndex        =   2
      Top             =   720
      Width           =   735
   End
   Begin VB.TextBox txtReset 
      Height          =   375
      Left            =   240
      TabIndex        =   1
      Text            =   "False"
      Top             =   1920
      Width           =   735
   End
   Begin VB.TextBox txtSet 
      Height          =   375
      Left            =   240
      TabIndex        =   0
      Text            =   "False"
      Top             =   720
      Width           =   735
   End
   Begin VB.Label lblQ1 
      Alignment       =   2  'Center
      BackColor       =   &H00C0FFFF&
      Caption         =   "Q1"
      Height          =   375
      Left            =   4440
      TabIndex        =   15
      Top             =   1440
      Width           =   735
   End
   Begin VB.Label lblQ2 
      Alignment       =   2  'Center
      BackColor       =   &H00C0FFFF&
      Caption         =   "Q2"
      Height          =   375
      Left            =   4440
      TabIndex        =   14
      Top             =   240
      Width           =   735
   End
   Begin VB.Label lblReset 
      Alignment       =   2  'Center
      BackColor       =   &H00C0FFFF&
      Caption         =   "Reset"
      Height          =   375
      Left            =   240
      TabIndex        =   13
      Top             =   1440
      Width           =   735
   End
   Begin VB.Label lblSet 
      Alignment       =   2  'Center
      BackColor       =   &H00C0FFFF&
      Caption         =   "Set"
      Height          =   375
      Left            =   240
      TabIndex        =   12
      Top             =   240
      Width           =   735
   End
   Begin VB.Label lblNot2 
      Alignment       =   2  'Center
      BackColor       =   &H00C0FFFF&
      Caption         =   "ÍÅ"
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   12
         Charset         =   204
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   495
      Left            =   3240
      TabIndex        =   10
      Top             =   1920
      Width           =   855
   End
   Begin VB.Label lblOr2 
      Alignment       =   2  'Center
      BackColor       =   &H00C0FFFF&
      Caption         =   "ÈËÈ"
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   12
         Charset         =   204
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   495
      Left            =   1200
      TabIndex        =   9
      Top             =   1920
      Width           =   855
   End
   Begin VB.Label lblNot1 
      Alignment       =   2  'Center
      BackColor       =   &H00C0FFFF&
      Caption         =   "ÍÅ"
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   12
         Charset         =   204
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   495
      Left            =   3240
      TabIndex        =   7
      Top             =   720
      Width           =   855
   End
   Begin VB.Label lblOr1 
      Alignment       =   2  'Center
      BackColor       =   &H00C0FFFF&
      Caption         =   "ÈËÈ"
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   12
         Charset         =   204
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   495
      Left            =   1200
      TabIndex        =   6
      Top             =   720
      Width           =   855
   End
End
Attribute VB_Name = "frm1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim blnS, blnR, BlnOr1Out, BlnOr2Out, blnNot1Out, blnNot2Out As Boolean
Private Sub cmdSet_Click()
txtSet.Text = True
txtReset.Text = False
blnS = txtSet.Text
blnR = txtReset.Text
BlnOr1Out = blnS Or blnNot2Out
blnNot1Out = Not BlnOr1Out
BlnOr2Out = blnNot1Out Or blnR
blnNot2Out = Not BlnOr2Out
txtOr1Out = BlnOr1Out
txtOr2Out = BlnOr2Out
txtQ2 = blnNot1Out
txtQ1 = blnNot2Out
End Sub
Private Sub cmdReset_Click()
txtSet.Text = False
txtReset.Text = True
blnS = txtSet.Text
blnR = txtReset.Text
BlnOr1Out = blnS Or blnNot2Out
blnNot1Out = Not BlnOr1Out
BlnOr2Out = blnNot1Out Or blnR
blnNot2Out = Not BlnOr2Out
txtOr1Out = BlnOr1Out
txtOr2Out = BlnOr2Out
txtQ2 = blnNot1Out
txtQ1 = blnNot2Out
End Sub
