VERSION 5.00
Begin VB.Form frmFilters 
   BorderStyle     =   4  'Fixed ToolWindow
   Caption         =   "Filter Settings"
   ClientHeight    =   5895
   ClientLeft      =   45
   ClientTop       =   420
   ClientWidth     =   4215
   BeginProperty Font 
      Name            =   "Verdana"
      Size            =   8.25
      Charset         =   0
      Weight          =   400
      Underline       =   0   'False
      Italic          =   0   'False
      Strikethrough   =   0   'False
   EndProperty
   Icon            =   "frmFilters.frx":0000
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   5895
   ScaleWidth      =   4215
   StartUpPosition =   2  'CenterScreen
   Begin VB.CommandButton cmdCancel 
      Caption         =   "Cancel"
      Height          =   375
      Left            =   1920
      TabIndex        =   5
      Top             =   5400
      Width           =   975
   End
   Begin VB.CommandButton cmdSave 
      Caption         =   "Save"
      BeginProperty Font 
         Name            =   "Verdana"
         Size            =   8.25
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Left            =   3000
      TabIndex        =   4
      Top             =   5400
      Width           =   1095
   End
   Begin VB.TextBox txtMessages 
      BeginProperty Font 
         Name            =   "Courier New"
         Size            =   9
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   1815
      Left            =   120
      MultiLine       =   -1  'True
      ScrollBars      =   2  'Vertical
      TabIndex        =   3
      Top             =   3480
      Width           =   3975
   End
   Begin VB.TextBox txtUsers 
      BeginProperty Font 
         Name            =   "Courier New"
         Size            =   9
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   1815
      Left            =   120
      MultiLine       =   -1  'True
      ScrollBars      =   2  'Vertical
      TabIndex        =   2
      Top             =   1200
      Width           =   3975
   End
   Begin VB.Label Label3 
      Caption         =   "Wildcards (? or *) may be used when a character or word is unknown within the string"
      BeginProperty Font 
         Name            =   "Verdana"
         Size            =   9
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H0000C000&
      Height          =   735
      Left            =   120
      TabIndex        =   6
      Top             =   120
      Width           =   3975
   End
   Begin VB.Label Label1 
      AutoSize        =   -1  'True
      Caption         =   "List of messages you wish to filter:"
      BeginProperty Font 
         Name            =   "Verdana"
         Size            =   9
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   210
      Left            =   120
      TabIndex        =   1
      Top             =   3240
      Width           =   3300
   End
   Begin VB.Label Label2 
      AutoSize        =   -1  'True
      Caption         =   "List of users you wish to filter:"
      BeginProperty Font 
         Name            =   "Verdana"
         Size            =   9
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   210
      Left            =   120
      TabIndex        =   0
      Top             =   960
      Width           =   2865
   End
End
Attribute VB_Name = "frmFilters"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit

Private Sub cmdCancel_Click()
    Unload Me
End Sub

Private Sub cmdSave_Click()
    Dim I As Integer
    Open AppData & "UserFilters.dat" For Append As #1: Close #1
    Open AppData & "UserFilters.dat" For Output As #1
        Print #1, txtUsers.text
    Close #1
    Open AppData & "MessageFilters.dat" For Append As #1: Close #1
    Open AppData & "MessageFilters.dat" For Output As #1
        Print #1, txtMessages.text
    Close #1
    ReloadUserFilters
    ReloadMessageFilters
    Unload Me
End Sub

Private Sub Form_Load()
    Dim strLine As String
    Open AppData & "UserFilters.dat" For Append As #1: Close #1
    Open AppData & "UserFilters.dat" For Input As #1
        Do Until EOF(1)
            Line Input #1, strLine
            If LenB(strLine) > 0 Then txtUsers.text = txtUsers.text & strLine & vbNewLine
        Loop
    Close #1
    Open AppData & "MessageFilters.dat" For Append As #1: Close #1
    Open AppData & "MessageFilters.dat" For Input As #1
        Do Until EOF(1)
            Line Input #1, strLine
            If LenB(strLine) > 0 Then txtMessages.text = txtMessages.text & strLine & vbNewLine
        Loop
    Close #1
End Sub
