- <DesignerGenerated> _
- Public Class Form1
- Inherits Form
- ' Methods
- <DebuggerNonUserCode> _
- Public Sub New()
- AddHandler MyBase.FormClosing, New FormClosingEventHandler(AddressOf Me.Form1_FormClosing)
- AddHandler MyBase.Load, New EventHandler(AddressOf Me.Form1_Load)
- Me.InitializeComponent
- End Sub
- <DllImport("GDI32", CharSet:=CharSet.Ansi, SetLastError:=True, ExactSpelling:=True)> _
- Private Shared Function BitBlt(ByVal srchDC As Integer, ByVal srcX As Integer, ByVal srcY As Integer, ByVal srcW As Integer, ByVal srcH As Integer, ByVal desthDC As Integer, ByVal destX As Integer, ByVal destY As Integer, ByVal op As Integer) As Integer
- End Function
- Private Sub Button1_Click(ByVal sender As Object, ByVal e As EventArgs)
- If Not Me.txtsteam.Text.Contains("Steam.exe") Then
- MessageBox.Show("Seleccione o ficheiro Steam.exe !", "Nemesis AntiCheat", MessageBoxButtons.OK, MessageBoxIcon.Hand)
- Else
- Dim str As String
- Dim str7 As String
- Dim utcNow As DateTime = DateTime.UtcNow
- Dim str10 As String = Strings.LCase(Me.txtuser.Text)
- Try
- ServicePointManager.ServerCertificateValidationCallback = New RemoteCertificateValidationCallback(AddressOf Me.validateCert)
- Dim request4 As FtpWebRequest = DirectCast(WebRequest.Create(("ftp://loadigsp.net/registo/" & str10 & "/")), FtpWebRequest)
- request4.EnableSsl = True
- request4.Credentials = New NetworkCredential("gathers@loadigsp.net", "qfO1chVxxA9THNwQIF9OVdl8Xz9gITnXJgKy")
- request4.Method = "NLST"
- DirectCast(request4.GetResponse, FtpWebResponse).Close
- Catch exception1 As Exception
- ProjectData.SetProjectError(exception1)
- Dim exception As Exception = exception1
- MessageBox.Show("O username inserido " & ChrW(233) & " inv" & ChrW(225) & "lido !", "Nemesis Anticheat", MessageBoxButtons.OK, MessageBoxIcon.Hand)
- ProjectData.ClearProjectError
- Return
- End Try
- Dim text As String = Me.txtpass.Text
- Try
- ServicePointManager.ServerCertificateValidationCallback = New RemoteCertificateValidationCallback(AddressOf Me.validateCert)
- Dim request5 As FtpWebRequest = DirectCast(WebRequest.Create(("ftp://loadigsp.net/registo/" & str10 & "/*.ini")), FtpWebRequest)
- request5.EnableSsl = True
- request5.Credentials = New NetworkCredential("gathers@loadigsp.net", "qfO1chVxxA9THNwQIF9OVdl8Xz9gITnXJgKy")
- request5.Method = "NLST"
- Dim response5 As FtpWebResponse = DirectCast(request5.GetResponse, FtpWebResponse)
- Dim str4 As String = New StreamReader(response5.GetResponseStream).ReadLine
- response5.Close
- str = Conversions.ToString(Strings.InStr(str4, ".", CompareMethod.Binary))
- str7 = Strings.Left(str4, CInt(Math.Round(CDbl((Conversions.ToDouble(str) - 1)))))
- Catch exception4 As Exception
- ProjectData.SetProjectError(exception4)
- Dim exception2 As Exception = exception4
- MessageBox.Show("Preenche os campos de Login !", "Nemesis Anticheat", MessageBoxButtons.OK, MessageBoxIcon.Hand)
- ProjectData.ClearProjectError
- Return
- End Try
- If ([text] <> str7) Then
- MessageBox.Show("A password inserida relativamente ao username est" & ChrW(225) & " incorrecta !", "Nemesis Anticheat", MessageBoxButtons.OK, MessageBoxIcon.Hand)
- Else
- Dim num2 As Long = Conversions.ToLong(Strings.Format(utcNow, "yyyyMMddHHmmss"))
- ServicePointManager.ServerCertificateValidationCallback = New RemoteCertificateValidationCallback(AddressOf Me.validateCert)
- Dim request2 As FtpWebRequest = DirectCast(WebRequest.Create(("ftp://loadigsp.net/registo/" & str10 & "/*.mst")), FtpWebRequest)
- request2.EnableSsl = True
- request2.Credentials = New NetworkCredential("gathers@loadigsp.net", "qfO1chVxxA9THNwQIF9OVdl8Xz9gITnXJgKy")
- request2.Method = "NLST"
- Dim response2 As FtpWebResponse = DirectCast(request2.GetResponse, FtpWebResponse)
- Dim stringCheck As String = New StreamReader(response2.GetResponseStream).ReadLine
- response2.Close
- Dim str2 As String = Conversions.ToString(Strings.InStrRev(stringCheck, ".", -1, CompareMethod.Binary))
- Dim str3 As String = Strings.Left(stringCheck, CInt(Math.Round(CDbl((Conversions.ToDouble(str2) - 1)))))
- If (Conversions.ToDouble(str3) > num2) Then
- MessageBox.Show("A tua conta est" & ChrW(225) & " logada em outro Nemesis AntiCheat!" & ChrW(13) & ChrW(10) & "Tenta dentro de 1 minuto, e se este erro persistir entra em contacto connosco.", "Nemesis Anticheat", MessageBoxButtons.OK, MessageBoxIcon.Hand)
- Else
- ServicePointManager.ServerCertificateValidationCallback = New RemoteCertificateValidationCallback(AddressOf Me.validateCert)
- Dim request As FtpWebRequest = DirectCast(WebRequest.Create(("ftp://loadigsp.net/registo/" & str10 & "/*.txt")), FtpWebRequest)
- request.Credentials = New NetworkCredential("gathers@loadigsp.net", "qfO1chVxxA9THNwQIF9OVdl8Xz9gITnXJgKy")
- request.EnableSsl = True
- request.Method = "NLST"
- Dim response As FtpWebResponse = DirectCast(request.GetResponse, FtpWebResponse)
- Dim str5 As String = New StreamReader(response.GetResponseStream).ReadLine
- response.Close
- Dim num As Integer = Strings.InStr(str5, ".", CompareMethod.Binary)
- Dim str8 As String = Strings.Left(str5, CInt(Math.Round(CDbl((Conversions.ToDouble(str) - 1)))))
- Dim num3 As Long = Conversions.ToLong(Strings.Format(DateAndTime.DateAdd("s", 60, utcNow), "yyyyMMddHHmmss"))
- ServicePointManager.ServerCertificateValidationCallback = New RemoteCertificateValidationCallback(AddressOf Me.validateCert)
- Dim request3 As FtpWebRequest = DirectCast(WebRequest.Create(String.Concat(New String() { "ftp://loadigsp.net/registo/", str10, "/", str3, ".mst" })), FtpWebRequest)
- request3.EnableSsl = True
- request3.Credentials = New NetworkCredential("gathers@loadigsp.net", "qfO1chVxxA9THNwQIF9OVdl8Xz9gITnXJgKy")
- request3.Method = "RENAME"
- request3.RenameTo = (Conversions.ToString(num3) & ".mst")
- DirectCast(request3.GetResponse, FtpWebResponse).Close
- Try
- If Me.CheckBox1.Checked Then
- Dim writer As New StreamWriter("C:Windowsuser.ini")
- writer.WriteLine(Me.txtuser.Text)
- writer.WriteLine(Me.txtpass.Text)
- writer.Close
- Else
- Dim writer2 As New StreamWriter("C:Windowsuser.ini")
- writer2.WriteLine("")
- writer2.WriteLine("")
- writer2.Close
- End If
- If Me.CheckBox2.Checked Then
- Dim writer3 As New StreamWriter("C:Windowssteam.ini")
- writer3.WriteLine(Me.txtsteam.Text)
- writer3.Close
- Else
- Dim writer4 As New StreamWriter("C:Windowssteam.ini")
- writer4.WriteLine("")
- writer4.Close
- End If
- Catch exception5 As Exception
- ProjectData.SetProjectError(exception5)
- Dim exception3 As Exception = exception5
- MessageBox.Show("Execute o AntiCheat como Administrador !", "Nemesis Anticheat", MessageBoxButtons.OK, MessageBoxIcon.Hand)
- Dim processesByName As Process() = Process.GetProcessesByName("Nemesis AntiCheat v2.1.3")
- If (processesByName.Length >= 1) Then
- Dim num5 As Integer = (processesByName.Length - 1)
- Dim i As Integer = 0
- Do While (i <= num5)
- processesByName(i).Kill
- i += 1
- Loop
- End If
- ProjectData.EndApp
- ProjectData.ClearProjectError
- End Try
- Me.Hide
- Me.NotifyIcon1.Visible = True
- MessageBox.Show("Login efectuado com sucesso!" & ChrW(13) & ChrW(10) & "Nota: N" & ChrW(227) & "o desligues o anti-cheat durante a gather ou ser" & ChrW(225) & "s kickado!", "Nemesis Anticheat", MessageBoxButtons.OK, MessageBoxIcon.Asterisk)
- Me.Timer1.Start
- Me.Timer2.Start
- End If
- End If
- End If
- End Sub
- Private Sub Button2_Click(ByVal sender As Object, ByVal e As EventArgs)
- If Not Me.Label4.Visible Then
- Me.Width = &H1BF
- Me.Height = 370
- Me.Label4.Visible = True
- Else
- Me.Width = &H1BF
- Me.Height = &H103
- Me.Label4.Visible = False
- End If
- End Sub
- Private Sub Button3_Click(ByVal sender As Object, ByVal e As EventArgs)
- If (Me.OpenFileDialog1.ShowDialog = DialogResult.OK) Then
- Me.txtsteam.Text = Me.OpenFileDialog1.FileName
- End If
- End Sub
- Protected Sub CapturarScreen()
- Dim lpDriverName As String = "DISPLAY"
- Dim lpDeviceName As String = ""
- Dim lpOutput As String = ""
- Dim lpInitData As String = ""
- Dim hDC As Integer = Form1.CreateDC((lpDriverName), (lpDeviceName), (lpOutput), (lpInitData))
- Dim num3 As Integer = Form1.CreateCompatibleDC(hDC)
- Me.fw = Form1.GetDeviceCaps(hDC, 8)
- Me.fh = Form1.GetDeviceCaps(hDC, 10)
- Dim hObject As Integer = Form1.CreateCompatibleBitmap(hDC, Me.fw, Me.fh)
- Dim num2 As Integer = Form1.SelectObject(num3, hObject)
- Dim num5 As Integer = Form1.BitBlt(num3, 0, 0, Me.fw, Me.fh, hDC, 0, 0, &HCC0020)
- hObject = Form1.SelectObject(num3, num2)
- num5 = Form1.DeleteDC(hDC)
- num5 = Form1.DeleteDC(num3)
- Dim hbitmap As New IntPtr(hObject)
- Me.Background = Image.FromHbitmap(hbitmap)
- Form1.DeleteObject(hObject)
- End Sub
- Private Sub CheckBox1_CheckedChanged(ByVal sender As Object, ByVal e As EventArgs)
- Try
- If Me.CheckBox1.Checked Then
- Dim reader As New StreamReader("C:Windowsuser.ini")
- Me.txtuser.Text = reader.ReadLine
- Me.txtpass.Text = reader.ReadLine
- reader.Close
- Else
- Me.txtuser.ResetText
- Me.txtpass.ResetText
- End If
- Catch exception1 As Exception
- ProjectData.SetProjectError(exception1)
- Dim exception As Exception = exception1
- MessageBox.Show("Execute o Anticheat como Administrador !", "Nemesis Anticheat", MessageBoxButtons.OK, MessageBoxIcon.Hand)
- Dim processesByName As Process() = Process.GetProcessesByName("Nemesis AntiCheat v2.1.3")
- If (processesByName.Length >= 1) Then
- Dim num2 As Integer = (processesByName.Length - 1)
- Dim i As Integer = 0
- Do While (i <= num2)
- processesByName(i).Kill
- i += 1
- Loop
- End If
- ProjectData.EndApp
- ProjectData.ClearProjectError
- End Try
- End Sub
- Private Sub CheckBox2_CheckedChanged(ByVal sender As Object, ByVal e As EventArgs)
- Try
- If Me.CheckBox2.Checked Then
- Dim reader As New StreamReader("C:Windowssteam.ini")
- Me.txtsteam.Text = reader.ReadLine
- reader.Close
- Else
- Me.txtsteam.ResetText
- End If
- Catch exception1 As Exception
- ProjectData.SetProjectError(exception1)
- Dim exception As Exception = exception1
- MessageBox.Show("Execute o Anticheat como Administrador !", "Nemesis Anticheat", MessageBoxButtons.OK, MessageBoxIcon.Hand)
- Dim processesByName As Process() = Process.GetProcessesByName("Nemesis AntiCheat v2.1.3")
- If (processesByName.Length >= 1) Then
- Dim num2 As Integer = (processesByName.Length - 1)
- Dim i As Integer = 0
- Do While (i <= num2)
- processesByName(i).Kill
- i += 1
- Loop
- End If
- ProjectData.EndApp
- ProjectData.ClearProjectError
- End Try
- End Sub
- <DllImport("GDI32", CharSet:=CharSet.Ansi, SetLastError:=True, ExactSpelling:=True)> _
- Private Shared Function CreateCompatibleBitmap(ByVal hDC As Integer, ByVal nWidth As Integer, ByVal nHeight As Integer) As Integer
- End Function
- <DllImport("GDI32", CharSet:=CharSet.Ansi, SetLastError:=True, ExactSpelling:=True)> _
- Private Shared Function CreateCompatibleDC(ByVal hDC As Integer) As Integer
- End Function
- <DllImport("gdi32", EntryPoint:="CreateDCA", CharSet:=CharSet.Ansi, SetLastError:=True, ExactSpelling:=True)> _
- Private Shared Function CreateDC(<MarshalAs(UnmanagedType.VBByRefStr)> ByRef lpDriverName As String, <MarshalAs(UnmanagedType.VBByRefStr)> ByRef lpDeviceName As String, <MarshalAs(UnmanagedType.VBByRefStr)> ByRef lpOutput As String, <MarshalAs(UnmanagedType.VBByRefStr)> ByRef lpInitData As String) As Integer
- End Function
- <DllImport("GDI32", CharSet:=CharSet.Ansi, SetLastError:=True, ExactSpelling:=True)> _
- Private Shared Function DeleteDC(ByVal hDC As Integer) As Integer
- End Function
- <DllImport("GDI32", CharSet:=CharSet.Ansi, SetLastError:=True, ExactSpelling:=True)> _
- Private Shared Function DeleteObject(ByVal hObj As Integer) As Integer
- End Function
- <DebuggerNonUserCode> _
- Protected Overrides Sub Dispose(ByVal disposing As Boolean)
- Try
- If (disposing AndAlso (Not Me.components Is Nothing)) Then
- Me.components.Dispose
- End If
- Finally
- MyBase.Dispose(disposing)
- End Try
- End Sub
- Private Sub EntrarNoSiteToolStripMenuItem_Click(ByVal sender As Object, ByVal e As EventArgs)
- Process.Start("http://gathers.loadigsp.net")
- End Sub
- Private Sub Form1_FormClosing(ByVal sender As Object, ByVal e As FormClosingEventArgs)
- Dim str4 As String = Strings.LCase(Me.txtuser.Text)
- Try
- ServicePointManager.ServerCertificateValidationCallback = New RemoteCertificateValidationCallback(AddressOf Me.validateCert)
- Dim request As FtpWebRequest = DirectCast(WebRequest.Create(("ftp://loadigsp.net/registo/" & str4 & "/*.mst")), FtpWebRequest)
- request.EnableSsl = True
- request.Credentials = New NetworkCredential("gathers@loadigsp.net", "qfO1chVxxA9THNwQIF9OVdl8Xz9gITnXJgKy")
- request.Method = "NLST"
- Dim response As FtpWebResponse = DirectCast(request.GetResponse, FtpWebResponse)
- Dim stringCheck As String = New StreamReader(response.GetResponseStream).ReadLine
- response.Close
- Dim str As String = Conversions.ToString(Strings.InStrRev(stringCheck, ".", -1, CompareMethod.Binary))
- Dim str2 As String = Strings.Left(stringCheck, CInt(Math.Round(CDbl((Conversions.ToDouble(str) - 1)))))
- ServicePointManager.ServerCertificateValidationCallback = New RemoteCertificateValidationCallback(AddressOf Me.validateCert)
- Dim request2 As FtpWebRequest = DirectCast(WebRequest.Create(String.Concat(New String() { "ftp://loadigsp.net/registo/", str4, "/", str2, ".mst" })), FtpWebRequest)
- request2.EnableSsl = True
- request2.Credentials = New NetworkCredential("gathers@loadigsp.net", "qfO1chVxxA9THNwQIF9OVdl8Xz9gITnXJgKy")
- request2.Method = "RENAME"
- request2.RenameTo = "0000.mst"
- DirectCast(request2.GetResponse, FtpWebResponse).Close
- Me.NotifyIcon1.Visible = False
- Dim processesByName As Process() = Process.GetProcessesByName("Nemesis AntiCheat v2.1.3")
- If (processesByName.Length >= 1) Then
- Dim num2 As Integer = (processesByName.Length - 1)
- Dim i As Integer = 0
- Do While (i <= num2)
- processesByName(i).Kill
- i += 1
- Loop
- End If
- ProjectData.EndApp
- Catch exception1 As Exception
- ProjectData.SetProjectError(exception1)
- Dim exception As Exception = exception1
- ProjectData.EndApp
- ProjectData.ClearProjectError
- End Try
- End Sub
- Private Sub Form1_Load(ByVal sender As Object, ByVal e As EventArgs)
- Try
- If Me.CheckBox1.Checked Then
- Dim reader As New StreamReader("C:Windowsuser.ini")
- Me.txtuser.Text = reader.ReadLine
- Me.txtpass.Text = reader.ReadLine
- reader.Close
- End If
- If Me.CheckBox2.Checked Then
- Dim reader2 As New StreamReader("C:Windowssteam.ini")
- Me.txtsteam.Text = reader2.ReadLine
- reader2.Close
- End If
- Catch exception1 As Exception
- ProjectData.SetProjectError(exception1)
- Dim exception As Exception = exception1
- MessageBox.Show("Execute o Anticheat como Administrador !", "Anticheat", MessageBoxButtons.OK, MessageBoxIcon.Hand)
- Dim processesByName As Process() = Process.GetProcessesByName("Nemesis AntiCheat v2.1.3")
- If (processesByName.Length >= 1) Then
- Dim num2 As Integer = (processesByName.Length - 1)
- Dim i As Integer = 0
- Do While (i <= num2)
- processesByName(i).Kill
- i += 1
- Loop
- End If
- ProjectData.EndApp
- ProjectData.ClearProjectError
- End Try
- End Sub
- <DllImport("gdi32", CharSet:=CharSet.Ansi, SetLastError:=True, ExactSpelling:=True)> _
- Private Shared Function GetDeviceCaps(ByVal hdc As Integer, ByVal nIndex As Integer) As Integer
- End Function
- Private Sub InfoToolStripMenuItem_Click(ByVal sender As Object, ByVal e As EventArgs)
- MessageBox.Show("O Nemesis Anticheat foi desenvolvido por -B1G#B0Y- para as Gathers LoadiGSP, n" & ChrW(227) & "o podendo ser usado para outros meios, fins, comunidades, institui" & ChrW(231) & ChrW(245) & "es ou quaisqueres outras entidades / actividades que n" & ChrW(227) & "o as relacionadas com as Gathers LoadiGSP.net!", "Nemesis Anticheat", MessageBoxButtons.OK, MessageBoxIcon.Asterisk)
- End Sub
- <DebuggerStepThrough> _
- Private Sub InitializeComponent()
- Me.components = New Container
- Dim manager As New ComponentResourceManager(GetType(Form1))
- Me.Button2 = New Button
- Me.PictureBox2 = New PictureBox
- Me.CheckBox1 = New CheckBox
- Me.txtuser = New TextBox
- Me.Label3 = New Label
- Me.Label1 = New Label
- Me.Button1 = New Button
- Me.txtpass = New TextBox
- Me.Label2 = New Label
- Me.Label5 = New Label
- Me.Label4 = New Label
- Me.txtsteam = New TextBox
- Me.CheckBox2 = New CheckBox
- Me.ContextMenuStrip1 = New ContextMenuStrip(Me.components)
- Me.ToolStripMenuItem1 = New ToolStripMenuItem
- Me.ToolStripSeparator2 = New ToolStripSeparator
- Me.EntrarNoSiteToolStripMenuItem = New ToolStripMenuItem
- Me.InfoToolStripMenuItem = New ToolStripMenuItem
- Me.ToolStripSeparator1 = New ToolStripSeparator
- Me.SairToolStripMenuItem = New ToolStripMenuItem
- Me.Timer2 = New Timer(Me.components)
- Me.NotifyIcon1 = New NotifyIcon(Me.components)
- Me.Timer1 = New Timer(Me.components)
- Me.Button3 = New Button
- Me.OpenFileDialog1 = New OpenFileDialog
- DirectCast(Me.PictureBox2, ISupportInitialize).BeginInit
- Me.ContextMenuStrip1.SuspendLayout
- Me.SuspendLayout
- Me.Button2.FlatStyle = FlatStyle.Popup
- Me.Button2.Font = New Font("Verdana", 8.25!, FontStyle.Regular, GraphicsUnit.Point, 0)
- Me.Button2.ForeColor = Color.DarkCyan
- Dim point As New Point(1, &HD0)
- Me.Button2.Location = point
- Me.Button2.Name = "Button2"
- Dim size As New Size(&H1B7, &H15)
- Me.Button2.Size = size
- Me.Button2.TabIndex = 30
- Me.Button2.Text = "Clique aqui para Indicar / Modificar a Localiza" & ChrW(231) & ChrW(227) & "o do ficheiro Steam.exe"
- Me.Button2.UseVisualStyleBackColor = True
- Me.PictureBox2.Image = DirectCast(manager.GetObject("PictureBox2.Image"), Image)
- point = New Point(-4, -2)
- Me.PictureBox2.Location = point
- Me.PictureBox2.Name = "PictureBox2"
- size = New Size(&H1C3, &H4C)
- Me.PictureBox2.Size = size
- Me.PictureBox2.TabIndex = &H1D
- Me.PictureBox2.TabStop = False
- Me.CheckBox1.AutoSize = True
- Me.CheckBox1.BackColor = Color.Transparent
- Me.CheckBox1.Checked = True
- Me.CheckBox1.CheckState = CheckState.Checked
- Me.CheckBox1.Font = New Font("Verdana", 8.25!, FontStyle.Regular, GraphicsUnit.Point, 0)
- Me.CheckBox1.ForeColor = Color.DarkCyan
- point = New Point(&HA4, &H88)
- Me.CheckBox1.Location = point
- Me.CheckBox1.Name = "CheckBox1"
- size = New Size(160, &H11)
- Me.CheckBox1.Size = size
- Me.CheckBox1.TabIndex = &H1C
- Me.CheckBox1.Text = "Guardar dados do login"
- Me.CheckBox1.UseVisualStyleBackColor = False
- Me.txtuser.Font = New Font("Verdana", 8.25!, FontStyle.Regular, GraphicsUnit.Point, 0)
- Me.txtuser.ForeColor = Color.DarkCyan
- point = New Point(&H7B, &H57)
- Me.txtuser.Location = point
- Me.txtuser.MaxLength = &H11
- Me.txtuser.Name = "txtuser"
- size = New Size(250, &H15)
- Me.txtuser.Size = size
- Me.txtuser.TabIndex = &H18
- Me.Label3.AutoSize = True
- Me.Label3.BackColor = Color.Transparent
- Me.Label3.Cursor = Cursors.Hand
- Me.Label3.Font = New Font("Verdana", 8.25!, FontStyle.Regular, GraphicsUnit.Point, 0)
- Me.Label3.ForeColor = Color.Blue
- point = New Point(&H114, 190)
- Me.Label3.Location = point
- Me.Label3.Name = "Label3"
- size = New Size(&HA5, 13)
- Me.Label3.Size = size
- Me.Label3.TabIndex = &H1B
- Me.Label3.Text = "Esqueceu-se da password ?"
- Me.Label1.AutoSize = True
- Me.Label1.BackColor = Color.Transparent
- Me.Label1.Font = New Font("Verdana", 8.25!, FontStyle.Regular, GraphicsUnit.Point, 0)
- Me.Label1.ForeColor = Color.DarkCyan
- point = New Point(&H2D, 90)
- Me.Label1.Location = point
- Me.Label1.Name = "Label1"
- size = New Size(&H4A, 13)
- Me.Label1.Size = size
- Me.Label1.TabIndex = &H16
- Me.Label1.Text = "Username :"
- Me.Button1.BackColor = Color.White
- Me.Button1.FlatStyle = FlatStyle.Popup
- Me.Button1.Font = New Font("Verdana", 8.25!, FontStyle.Regular, GraphicsUnit.Point, 0)
- Me.Button1.ForeColor = Color.DarkCyan
- point = New Point(&HA4, &H9F)
- Me.Button1.Location = point
- Me.Button1.Name = "Button1"
- size = New Size(160, &H17)
- Me.Button1.Size = size
- Me.Button1.TabIndex = &H1A
- Me.Button1.Text = "Entrar"
- Me.Button1.UseVisualStyleBackColor = False
- Me.txtpass.ForeColor = Color.DarkCyan
- point = New Point(&H7B, &H71)
- Me.txtpass.Location = point
- Me.txtpass.MaxLength = 50
- Me.txtpass.Name = "txtpass"
- Me.txtpass.PasswordChar = ChrW(9679)
- size = New Size(250, 20)
- Me.txtpass.Size = size
- Me.txtpass.TabIndex = &H19
- Me.Label2.AutoSize = True
- Me.Label2.BackColor = Color.Transparent
- Me.Label2.Font = New Font("Verdana", 8.25!, FontStyle.Regular, GraphicsUnit.Point, 0)
- Me.Label2.ForeColor = Color.DarkCyan
- point = New Point(&H31, &H74)
- Me.Label2.Location = point
- Me.Label2.Name = "Label2"
- size = New Size(70, 13)
- Me.Label2.Size = size
- Me.Label2.TabIndex = &H17
- Me.Label2.Text = "Password :"
- Me.Label5.AutoSize = True
- Me.Label5.BackColor = Color.Transparent
- Me.Label5.Cursor = Cursors.Hand
- Me.Label5.Font = New Font("Verdana", 8.25!, (FontStyle.Underline Or FontStyle.Italic), GraphicsUnit.Point, 0)
- Me.Label5.ForeColor = Color.Blue
- point = New Point(&H12, &H125)
- Me.Label5.Location = point
- Me.Label5.Name = "Label5"
- size = New Size(&H195, 13)
- Me.Label5.Size = size
- Me.Label5.TabIndex = &H22
- Me.Label5.Text = "Clique aqui para ver o exemplo de como seleccionar o ficheiro Steam"
- Me.Label4.AutoSize = True
- Me.Label4.BackColor = Color.Transparent
- Me.Label4.Font = New Font("Verdana", 8.25!, FontStyle.Regular, GraphicsUnit.Point, 0)
- Me.Label4.ForeColor = Color.DarkCyan
- point = New Point(&H18, &HF1)
- Me.Label4.Location = point
- Me.Label4.Name = "Label4"
- size = New Size(&H7E, 13)
- Me.Label4.Size = size
- Me.Label4.TabIndex = &H21
- Me.Label4.Text = "Caminho da Steam :"
- Me.Label4.Visible = False
- Me.txtsteam.ForeColor = Color.DarkCyan
- point = New Point(&H9A, &HEE)
- Me.txtsteam.Location = point
- Me.txtsteam.MaxLength = 50
- Me.txtsteam.Name = "txtsteam"
- Me.txtsteam.ReadOnly = True
- size = New Size(250, 20)
- Me.txtsteam.Size = size
- Me.txtsteam.TabIndex = &H20
- Me.CheckBox2.AutoSize = True
- Me.CheckBox2.BackColor = Color.Transparent
- Me.CheckBox2.Checked = True
- Me.CheckBox2.CheckState = CheckState.Checked
- Me.CheckBox2.Font = New Font("Verdana", 8.25!, FontStyle.Regular, GraphicsUnit.Point, 0)
- Me.CheckBox2.ForeColor = Color.DarkCyan
- point = New Point(&HAB, &H13D)
- Me.CheckBox2.Location = point
- Me.CheckBox2.Name = "CheckBox2"
- size = New Size(&HB8, &H11)
- Me.CheckBox2.Size = size
- Me.CheckBox2.TabIndex = &H1F
- Me.CheckBox2.Text = "Guardar caminho da Steam"
- Me.CheckBox2.UseVisualStyleBackColor = False
- Me.ContextMenuStrip1.BackgroundImage = DirectCast(manager.GetObject("ContextMenuStrip1.BackgroundImage"), Image)
- Me.ContextMenuStrip1.Items.AddRange(New ToolStripItem() { Me.ToolStripMenuItem1, Me.ToolStripSeparator2, Me.EntrarNoSiteToolStripMenuItem, Me.InfoToolStripMenuItem, Me.ToolStripSeparator1, Me.SairToolStripMenuItem })
- Me.ContextMenuStrip1.Name = "ContextMenuStrip1"
- Me.ContextMenuStrip1.ShowImageMargin = False
- size = New Size(&H9D, &H68)
- Me.ContextMenuStrip1.Size = size
- Me.ToolStripMenuItem1.Font = New Font("Verdana", 8.25!, FontStyle.Regular, GraphicsUnit.Point, 0)
- Me.ToolStripMenuItem1.ForeColor = Color.DarkCyan
- Me.ToolStripMenuItem1.Name = "ToolStripMenuItem1"
- size = New Size(&H9C, &H16)
- Me.ToolStripMenuItem1.Size = size
- Me.ToolStripMenuItem1.Text = "Entrar na Gather!"
- Me.ToolStripSeparator2.Name = "ToolStripSeparator2"
- size = New Size(&H99, 6)
- Me.ToolStripSeparator2.Size = size
- Me.EntrarNoSiteToolStripMenuItem.Font = New Font("Verdana", 8.25!, FontStyle.Regular, GraphicsUnit.Point, 0)
- Me.EntrarNoSiteToolStripMenuItem.ForeColor = Color.DarkCyan
- Me.EntrarNoSiteToolStripMenuItem.Name = "EntrarNoSiteToolStripMenuItem"
- size = New Size(&H9C, &H16)
- Me.EntrarNoSiteToolStripMenuItem.Size = size
- Me.EntrarNoSiteToolStripMenuItem.Text = "Entrar no Site"
- Me.InfoToolStripMenuItem.Font = New Font("Verdana", 8.25!, FontStyle.Regular, GraphicsUnit.Point, 0)
- Me.InfoToolStripMenuItem.ForeColor = Color.DarkCyan
- Me.InfoToolStripMenuItem.Name = "InfoToolStripMenuItem"
- size = New Size(&H9C, &H16)
- Me.InfoToolStripMenuItem.Size = size
- Me.InfoToolStripMenuItem.Text = "Info"
- Me.ToolStripSeparator1.Name = "ToolStripSeparator1"
- size = New Size(&H99, 6)
- Me.ToolStripSeparator1.Size = size
- Me.SairToolStripMenuItem.Font = New Font("Verdana", 8.25!, FontStyle.Regular, GraphicsUnit.Point, 0)
- Me.SairToolStripMenuItem.ForeColor = Color.DarkCyan
- Me.SairToolStripMenuItem.Name = "SairToolStripMenuItem"
- size = New Size(&H9C, &H16)
- Me.SairToolStripMenuItem.Size = size
- Me.SairToolStripMenuItem.Text = "Sair"
- Me.Timer2.Interval = &H7530
- Me.NotifyIcon1.ContextMenuStrip = Me.ContextMenuStrip1
- Me.NotifyIcon1.Icon = DirectCast(manager.GetObject("NotifyIcon1.Icon"), Icon)
- Me.NotifyIcon1.Text = "Nemesis AntiCheat v2.1.3"
- Me.Timer1.Interval = &H15F90
- Me.Button3.FlatStyle = FlatStyle.Flat
- Me.Button3.ForeColor = Color.DarkCyan
- point = New Point(&H9A, &H105)
- Me.Button3.Location = point
- Me.Button3.Name = "Button3"
- size = New Size(250, &H17)
- Me.Button3.Size = size
- Me.Button3.TabIndex = &H23
- Me.Button3.Text = "Clique aqui para seleccionar o ficheiro Steam.exe"
- Me.Button3.UseVisualStyleBackColor = True
- Me.OpenFileDialog1.FileName = "Procure o ficheiro Steam"
- Me.OpenFileDialog1.Filter = "Execut" & ChrW(225) & "veis(.exe)|*.exe"
- Me.OpenFileDialog1.Title = "Nemesis AntiCheat"
- Dim ef As New SizeF(6!, 13!)
- Me.AutoScaleDimensions = ef
- Me.AutoScaleMode = AutoScaleMode.Font
- Me.BackgroundImage = DirectCast(manager.GetObject("$this.BackgroundImage"), Image)
- size = New Size(&H1B9, &HE5)
- Me.ClientSize = size
- Me.Controls.Add(Me.Label4)
- Me.Controls.Add(Me.txtsteam)
- Me.Controls.Add(Me.Button3)
- Me.Controls.Add(Me.Label5)
- Me.Controls.Add(Me.CheckBox2)
- Me.Controls.Add(Me.Button2)
- Me.Controls.Add(Me.PictureBox2)
- Me.Controls.Add(Me.CheckBox1)
- Me.Controls.Add(Me.txtuser)
- Me.Controls.Add(Me.Label3)
- Me.Controls.Add(Me.Label1)
- Me.Controls.Add(Me.Button1)
- Me.Controls.Add(Me.txtpass)
- Me.Controls.Add(Me.Label2)
- Me.FormBorderStyle = FormBorderStyle.FixedSingle
- Me.Icon = DirectCast(manager.GetObject("$this.Icon"), Icon)
- Me.MaximizeBox = False
- Me.Name = "Form1"
- Me.StartPosition = FormStartPosition.CenterScreen
- Me.Text = "Nemesis AntiCheat v2.1.3"
- DirectCast(Me.PictureBox2, ISupportInitialize).EndInit
- Me.ContextMenuStrip1.ResumeLayout(False)
- Me.ResumeLayout(False)
- Me.PerformLayout
- End Sub
- Private Sub Label3_Click(ByVal sender As Object, ByVal e As EventArgs)
- Process.Start("http://gathers.loadigsp.net/?p=recuperar")
- Me.txtuser.ResetText
- Me.txtpass.ResetText
- End Sub
- Private Sub Label5_Click(ByVal sender As Object, ByVal e As EventArgs)
- Process.Start("http://gathers.loadigsp.net/steam.png")
- End Sub
- Private Sub SairToolStripMenuItem_Click(ByVal sender As Object, ByVal e As EventArgs)
- Dim str4 As String = Strings.LCase(Me.txtuser.Text)
- Try
- ServicePointManager.ServerCertificateValidationCallback = New RemoteCertificateValidationCallback(AddressOf Me.validateCert)
- Dim request As FtpWebRequest = DirectCast(WebRequest.Create(("ftp://loadigsp.net/registo/" & str4 & "/*.mst")), FtpWebRequest)
- request.EnableSsl = True
- request.Credentials = New NetworkCredential("gathers@loadigsp.net", "qfO1chVxxA9THNwQIF9OVdl8Xz9gITnXJgKy")
- request.Method = "NLST"
- Dim response As FtpWebResponse = DirectCast(request.GetResponse, FtpWebResponse)
- Dim stringCheck As String = New StreamReader(response.GetResponseStream).ReadLine
- response.Close
- Dim str As String = Conversions.ToString(Strings.InStrRev(stringCheck, ".", -1, CompareMethod.Binary))
- Dim str2 As String = Strings.Left(stringCheck, CInt(Math.Round(CDbl((Conversions.ToDouble(str) - 1)))))
- ServicePointManager.ServerCertificateValidationCallback = New RemoteCertificateValidationCallback(AddressOf Me.validateCert)
- Dim request2 As FtpWebRequest = DirectCast(WebRequest.Create(String.Concat(New String() { "ftp://loadigsp.net/registo/", str4, "/", str2, ".mst" })), FtpWebRequest)
- request2.EnableSsl = True
- request2.Credentials = New NetworkCredential("gathers@loadigsp.net", "qfO1chVxxA9THNwQIF9OVdl8Xz9gITnXJgKy")
- request2.Method = "RENAME"
- request2.RenameTo = "0000.mst"
- DirectCast(request2.GetResponse, FtpWebResponse).Close
- Me.NotifyIcon1.Visible = False
- Dim processesByName As Process() = Process.GetProcessesByName("Nemesis AntiCheat v2.1.3")
- If (processesByName.Length >= 1) Then
- Dim num2 As Integer = (processesByName.Length - 1)
- Dim i As Integer = 0
- Do While (i <= num2)
- processesByName(i).Kill
- i += 1
- Loop
- End If
- ProjectData.EndApp
- Catch exception1 As Exception
- ProjectData.SetProjectError(exception1)
- Dim exception As Exception = exception1
- ProjectData.EndApp
- ProjectData.ClearProjectError
- End Try
- End Sub
- <DllImport("GDI32", CharSet:=CharSet.Ansi, SetLastError:=True, ExactSpelling:=True)> _
- Private Shared Function SelectObject(ByVal hDC As Integer, ByVal hObject As Integer) As Integer
- End Function
- Private Sub Timer1_Tick(ByVal sender As Object, ByVal e As EventArgs)
- Dim str3 As String = Strings.LCase(Me.txtuser.Text)
- Dim utcNow As DateTime = DateTime.UtcNow
- Try
- ServicePointManager.ServerCertificateValidationCallback = New RemoteCertificateValidationCallback(AddressOf Me.validateCert)
- Dim request As FtpWebRequest = DirectCast(WebRequest.Create(("ftp://loadigsp.net/registo/" & str3 & "/*.txt")), FtpWebRequest)
- request.Credentials = New NetworkCredential("gathers@loadigsp.net", "qfO1chVxxA9THNwQIF9OVdl8Xz9gITnXJgKy")
- request.EnableSsl = True
- request.Method = "NLST"
- Dim response As FtpWebResponse = DirectCast(request.GetResponse, FtpWebResponse)
- Dim str As String = New StreamReader(response.GetResponseStream).ReadLine
- response.Close
- Dim num As Integer = Strings.InStr(str, ".", CompareMethod.Binary)
- Dim str2 As String = Strings.Left(str, (num - 1))
- Dim num2 As Long = Conversions.ToLong(Strings.Format(utcNow, "yyyyMMddHHmmss"))
- ServicePointManager.ServerCertificateValidationCallback = New RemoteCertificateValidationCallback(AddressOf Me.validateCert)
- Dim request2 As FtpWebRequest = DirectCast(WebRequest.Create(("ftp://loadigsp.net/registo/" & str3 & "/*.doc")), FtpWebRequest)
- request2.EnableSsl = True
- request2.Credentials = New NetworkCredential("gathers@loadigsp.net", "qfO1chVxxA9THNwQIF9OVdl8Xz9gITnXJgKy")
- request2.Method = "NLST"
- Dim response2 As FtpWebResponse = DirectCast(request2.GetResponse, FtpWebResponse)
- Dim str6 As String = New StreamReader(response2.GetResponseStream).ReadLine
- response2.Close
- Dim str4 As String = Conversions.ToString(Strings.InStr(str6, ".", CompareMethod.Binary))
- If (Conversions.ToDouble(Strings.Left(str6, CInt(Math.Round(CDbl((Conversions.ToDouble(str4) - 1)))))) > num2) Then
- If (Process.GetProcessesByName("hl").Length >= 1) Then
- Me.CapturarScreen
- Dim image As New Bitmap(Me.Background)
- Dim bitmap As New Bitmap(300, 300)
- Dim graphics As Graphics = Graphics.FromImage(bitmap)
- graphics.InterpolationMode = InterpolationMode.Low
- Dim rect As New Rectangle(0, 0, bitmap.Width, bitmap.Height)
- graphics.DrawImage(image, rect)
- Dim filename As String = String.Concat(New String() { "", str3, Conversions.ToString(utcNow.Hour), Conversions.ToString(utcNow.Minute), ".jpeg" })
- bitmap.Save(filename)
- ServicePointManager.ServerCertificateValidationCallback = New RemoteCertificateValidationCallback(AddressOf Me.validateCert)
- Dim request3 As FtpWebRequest = DirectCast(WebRequest.Create(("ftp://screenshots.loadi.net/pics/" & filename)), FtpWebRequest)
- request3.Credentials = New NetworkCredential("screensh", "qfO1chVxxA9THNwQIF9OVdl8Xz9gITnXJgKy")
- request3.EnableSsl = True
- request3.Method = "STOR"
- Dim buffer As Byte() = File.ReadAllBytes(("C:" & filename))
- Dim requestStream As Stream = request3.GetRequestStream
- requestStream.Write(buffer, 0, buffer.Length)
- requestStream.Close
- requestStream.Dispose
- File.Delete(filename)
- End If
- Else
- response2.Close
- End If
- Catch exception1 As Exception
- ProjectData.SetProjectError(exception1)
- Dim exception As Exception = exception1
- MessageBox.Show("Erro ao tentar conectar ao servidor !" & ChrW(13) & ChrW(10) & "O AntiCheat ir" & ChrW(225) & " ser encerrado, tente novamente mais tarde." & ChrW(13) & ChrW(10) & "Contacte o administrador para mais informa" & ChrW(231) & ChrW(245) & "es.", "Nemesis AntiCheat", MessageBoxButtons.OK, MessageBoxIcon.Hand)
- ProjectData.EndApp
- ProjectData.ClearProjectError
- End Try
- End Sub
- Private Sub Timer2_Tick(ByVal sender As Object, ByVal e As EventArgs)
- Dim str4 As String = Strings.LCase(Me.txtuser.Text)
- Dim utcNow As DateTime = DateTime.UtcNow
- Dim num As Long = Conversions.ToLong(Strings.Format(utcNow, "yyyyMMddHHmmss"))
- Try
- ServicePointManager.ServerCertificateValidationCallback = New RemoteCertificateValidationCallback(AddressOf Me.validateCert)
- Dim request As FtpWebRequest = DirectCast(WebRequest.Create(("ftp://loadigsp.net/registo/" & str4 & "/*.mst")), FtpWebRequest)
- request.EnableSsl = True
- request.Credentials = New NetworkCredential("gathers@loadigsp.net", "qfO1chVxxA9THNwQIF9OVdl8Xz9gITnXJgKy")
- request.Method = "NLST"
- Dim response As FtpWebResponse = DirectCast(request.GetResponse, FtpWebResponse)
- Dim stringCheck As String = New StreamReader(response.GetResponseStream).ReadLine
- response.Close
- Dim str As String = Conversions.ToString(Strings.InStrRev(stringCheck, ".", -1, CompareMethod.Binary))
- Dim str2 As String = Strings.Left(stringCheck, CInt(Math.Round(CDbl((Conversions.ToDouble(str) - 1)))))
- Dim num2 As Long = Conversions.ToLong(Strings.Format(DateAndTime.DateAdd("s", 60, utcNow), "yyyyMMddHHmmss"))
- ServicePointManager.ServerCertificateValidationCallback = New RemoteCertificateValidationCallback(AddressOf Me.validateCert)
- Dim request2 As FtpWebRequest = DirectCast(WebRequest.Create(String.Concat(New String() { "ftp://loadigsp.net/registo/", str4, "/", str2, ".mst" })), FtpWebRequest)
- request2.EnableSsl = True
- request2.Credentials = New NetworkCredential("gathers@loadigsp.net", "qfO1chVxxA9THNwQIF9OVdl8Xz9gITnXJgKy")
- request2.Method = "RENAME"
- request2.RenameTo = (Conversions.ToString(num2) & ".mst")
- DirectCast(request2.GetResponse, FtpWebResponse).Close
- Catch exception1 As Exception
- ProjectData.SetProjectError(exception1)
- Dim exception As Exception = exception1
- MessageBox.Show("Erro ao tentar conectar ao servidor !" & ChrW(13) & ChrW(10) & "O AntiCheat ir" & ChrW(225) & " ser encerrado, tente novamente mais tarde." & ChrW(13) & ChrW(10) & "Contacte o administrador para mais informa" & ChrW(231) & ChrW(245) & "es.", "Nemesis AntiCheat", MessageBoxButtons.OK, MessageBoxIcon.Hand)
- ProjectData.EndApp
- ProjectData.ClearProjectError
- End Try
- End Sub
- Private Sub ToolStripMenuItem1_Click(ByVal sender As Object, ByVal e As EventArgs)
- Dim str As String = Strings.LCase(Me.txtuser.Text)
- Try
- ServicePointManager.ServerCertificateValidationCallback = New RemoteCertificateValidationCallback(AddressOf Me.validateCert)
- Dim request As FtpWebRequest = DirectCast(WebRequest.Create(("ftp://loadigsp.net/registo/" & str & "/")), FtpWebRequest)
- request.Credentials = New NetworkCredential("gathers@loadigsp.net", "qfO1chVxxA9THNwQIF9OVdl8Xz9gITnXJgKy")
- request.EnableSsl = True
- request.Method = "NLST"
- Dim response As FtpWebResponse = DirectCast(request.GetResponse, FtpWebResponse)
- Dim str3 As String = New StreamReader(response.GetResponseStream).ReadLine
- response.Close
- Dim str4 As String = str3
- If (str4 = ".") Then
- MessageBox.Show("De momento n" & ChrW(227) & "o est" & ChrW(225) & "s em nenhuma gather para te conectares " & ChrW(224) & " mesma !", "Nemesis Anticheat", MessageBoxButtons.OK, MessageBoxIcon.Hand)
- Else
- Dim processesByName As Process() = Process.GetProcessesByName("hl")
- If (processesByName.Length >= 1) Then
- Dim num2 As Integer = (processesByName.Length - 1)
- Dim i As Integer = 0
- Do While (i <= num2)
- processesByName(i).Kill
- i += 1
- Loop
- End If
- Process.Start(Me.txtsteam.Text, ("-applaunch 10 -32bpp " & str4))
- End If
- Catch exception1 As Exception
- ProjectData.SetProjectError(exception1)
- Dim exception As Exception = exception1
- MessageBox.Show("Erro ao tentar conectar ao servidor !" & ChrW(13) & ChrW(10) & "O AntiCheat ir" & ChrW(225) & " ser encerrado, tente novamente mais tarde." & ChrW(13) & ChrW(10) & "Contacte o administrador para mais informa" & ChrW(231) & ChrW(245) & "es.", "Nemesis AntiCheat", MessageBoxButtons.OK, MessageBoxIcon.Hand)
- ProjectData.EndApp
- ProjectData.ClearProjectError
- End Try
- End Sub
- Public Function validateCert(ByVal sender As Object, ByVal certificate As X509Certificate, ByVal chain As X509Chain, ByVal sslPolicyErrors As SslPolicyErrors) As Boolean
- Return True
- End Function
- ' Properties
- Friend Overridable Property Button1 As Button
- Get
- Return Me._Button1
- End Get
- Set(ByVal WithEventsValue As Button)
- Dim handler As EventHandler = New EventHandler(AddressOf Me.Button1_Click)
- If (Not Me._Button1 Is Nothing) Then
- RemoveHandler Me._Button1.Click, handler
- End If
- Me._Button1 = WithEventsValue
- If (Not Me._Button1 Is Nothing) Then
- AddHandler Me._Button1.Click, handler
- End If
- End Set
- End Property
- Friend Overridable Property Button2 As Button
- Get
- Return Me._Button2
- End Get
- Set(ByVal WithEventsValue As Button)
- Dim handler As EventHandler = New EventHandler(AddressOf Me.Button2_Click)
- If (Not Me._Button2 Is Nothing) Then
- RemoveHandler Me._Button2.Click, handler
- End If
- Me._Button2 = WithEventsValue
- If (Not Me._Button2 Is Nothing) Then
- AddHandler Me._Button2.Click, handler
- End If
- End Set
- End Property
- Friend Overridable Property Button3 As Button
- Get
- Return Me._Button3
- End Get
- Set(ByVal WithEventsValue As Button)
- Dim handler As EventHandler = New EventHandler(AddressOf Me.Button3_Click)
- If (Not Me._Button3 Is Nothing) Then
- RemoveHandler Me._Button3.Click, handler
- End If
- Me._Button3 = WithEventsValue
- If (Not Me._Button3 Is Nothing) Then
- AddHandler Me._Button3.Click, handler
- End If
- End Set
- End Property
- Friend Overridable Property CheckBox1 As CheckBox
- Get
- Return Me._CheckBox1
- End Get
- Set(ByVal WithEventsValue As CheckBox)
- Dim handler As EventHandler = New EventHandler(AddressOf Me.CheckBox1_CheckedChanged)
- If (Not Me._CheckBox1 Is Nothing) Then
- RemoveHandler Me._CheckBox1.CheckedChanged, handler
- End If
- Me._CheckBox1 = WithEventsValue
- If (Not Me._CheckBox1 Is Nothing) Then
- AddHandler Me._CheckBox1.CheckedChanged, handler
- End If
- End Set
- End Property
- Friend Overridable Property CheckBox2 As CheckBox
- Get
- Return Me._CheckBox2
- End Get
- Set(ByVal WithEventsValue As CheckBox)
- Dim handler As EventHandler = New EventHandler(AddressOf Me.CheckBox2_CheckedChanged)
- If (Not Me._CheckBox2 Is Nothing) Then
- RemoveHandler Me._CheckBox2.CheckedChanged, handler
- End If
- Me._CheckBox2 = WithEventsValue
- If (Not Me._CheckBox2 Is Nothing) Then
- AddHandler Me._CheckBox2.CheckedChanged, handler
- End If
- End Set
- End Property
- Friend Overridable Property ContextMenuStrip1 As ContextMenuStrip
- Get
- Return Me._ContextMenuStrip1
- End Get
- Set(ByVal WithEventsValue As ContextMenuStrip)
- Me._ContextMenuStrip1 = WithEventsValue
- End Set
- End Property
- Friend Overridable Property EntrarNoSiteToolStripMenuItem As ToolStripMenuItem
- Get
- Return Me._EntrarNoSiteToolStripMenuItem
- End Get
- Set(ByVal WithEventsValue As ToolStripMenuItem)
- Dim handler As EventHandler = New EventHandler(AddressOf Me.EntrarNoSiteToolStripMenuItem_Click)
- If (Not Me._EntrarNoSiteToolStripMenuItem Is Nothing) Then
- RemoveHandler Me._EntrarNoSiteToolStripMenuItem.Click, handler
- End If
- Me._EntrarNoSiteToolStripMenuItem = WithEventsValue
- If (Not Me._EntrarNoSiteToolStripMenuItem Is Nothing) Then
- AddHandler Me._EntrarNoSiteToolStripMenuItem.Click, handler
- End If
- End Set
- End Property
- Friend Overridable Property InfoToolStripMenuItem As ToolStripMenuItem
- Get
- Return Me._InfoToolStripMenuItem
- End Get
- Set(ByVal WithEventsValue As ToolStripMenuItem)
- Dim handler As EventHandler = New EventHandler(AddressOf Me.InfoToolStripMenuItem_Click)
- If (Not Me._InfoToolStripMenuItem Is Nothing) Then
- RemoveHandler Me._InfoToolStripMenuItem.Click, handler
- End If
- Me._InfoToolStripMenuItem = WithEventsValue
- If (Not Me._InfoToolStripMenuItem Is Nothing) Then
- AddHandler Me._InfoToolStripMenuItem.Click, handler
- End If
- End Set
- End Property
- Friend Overridable Property Label1 As Label
- Get
- Return Me._Label1
- End Get
- Set(ByVal WithEventsValue As Label)
- Me._Label1 = WithEventsValue
- End Set
- End Property
- Friend Overridable Property Label2 As Label
- Get
- Return Me._Label2
- End Get
- Set(ByVal WithEventsValue As Label)
- Me._Label2 = WithEventsValue
- End Set
- End Property
- Friend Overridable Property Label3 As Label
- Get
- Return Me._Label3
- End Get
- Set(ByVal WithEventsValue As Label)
- Dim handler As EventHandler = New EventHandler(AddressOf Me.Label3_Click)
- If (Not Me._Label3 Is Nothing) Then
- RemoveHandler Me._Label3.Click, handler
- End If
- Me._Label3 = WithEventsValue
- If (Not Me._Label3 Is Nothing) Then
- AddHandler Me._Label3.Click, handler
- End If
- End Set
- End Property
- Friend Overridable Property Label4 As Label
- Get
- Return Me._Label4
- End Get
- Set(ByVal WithEventsValue As Label)
- Me._Label4 = WithEventsValue
- End Set
- End Property
- Friend Overridable Property Label5 As Label
- Get
- Return Me._Label5
- End Get
- Set(ByVal WithEventsValue As Label)
- Dim handler As EventHandler = New EventHandler(AddressOf Me.Label5_Click)
- If (Not Me._Label5 Is Nothing) Then
- RemoveHandler Me._Label5.Click, handler
- End If
- Me._Label5 = WithEventsValue
- If (Not Me._Label5 Is Nothing) Then
- AddHandler Me._Label5.Click, handler
- End If
- End Set
- End Property
- Friend Overridable Property NotifyIcon1 As NotifyIcon
- Get
- Return Me._NotifyIcon1
- End Get
- Set(ByVal WithEventsValue As NotifyIcon)
- Me._NotifyIcon1 = WithEventsValue
- End Set
- End Property
- Friend Overridable Property OpenFileDialog1 As OpenFileDialog
- Get
- Return Me._OpenFileDialog1
- End Get
- Set(ByVal WithEventsValue As OpenFileDialog)
- Me._OpenFileDialog1 = WithEventsValue
- End Set
- End Property
- Friend Overridable Property PictureBox2 As PictureBox
- Get
- Return Me._PictureBox2
- End Get
- Set(ByVal WithEventsValue As PictureBox)
- Me._PictureBox2 = WithEventsValue
- End Set
- End Property
- Friend Overridable Property SairToolStripMenuItem As ToolStripMenuItem
- Get
- Return Me._SairToolStripMenuItem
- End Get
- Set(ByVal WithEventsValue As ToolStripMenuItem)
- Dim handler As EventHandler = New EventHandler(AddressOf Me.SairToolStripMenuItem_Click)
- If (Not Me._SairToolStripMenuItem Is Nothing) Then
- RemoveHandler Me._SairToolStripMenuItem.Click, handler
- End If
- Me._SairToolStripMenuItem = WithEventsValue
- If (Not Me._SairToolStripMenuItem Is Nothing) Then
- AddHandler Me._SairToolStripMenuItem.Click, handler
- End If
- End Set
- End Property
- Friend Overridable Property Timer1 As Timer
- Get
- Return Me._Timer1
- End Get
- Set(ByVal WithEventsValue As Timer)
- Dim handler As EventHandler = New EventHandler(AddressOf Me.Timer1_Tick)
- If (Not Me._Timer1 Is Nothing) Then
- RemoveHandler Me._Timer1.Tick, handler
- End If
- Me._Timer1 = WithEventsValue
- If (Not Me._Timer1 Is Nothing) Then
- AddHandler Me._Timer1.Tick, handler
- End If
- End Set
- End Property
- Friend Overridable Property Timer2 As Timer
- Get
- Return Me._Timer2
- End Get
- Set(ByVal WithEventsValue As Timer)
- Dim handler As EventHandler = New EventHandler(AddressOf Me.Timer2_Tick)
- If (Not Me._Timer2 Is Nothing) Then
- RemoveHandler Me._Timer2.Tick, handler
- End If
- Me._Timer2 = WithEventsValue
- If (Not Me._Timer2 Is Nothing) Then
- AddHandler Me._Timer2.Tick, handler
- End If
- End Set
- End Property
- Friend Overridable Property ToolStripMenuItem1 As ToolStripMenuItem
- Get
- Return Me._ToolStripMenuItem1
- End Get
- Set(ByVal WithEventsValue As ToolStripMenuItem)
- Dim handler As EventHandler = New EventHandler(AddressOf Me.ToolStripMenuItem1_Click)
- If (Not Me._ToolStripMenuItem1 Is Nothing) Then
- RemoveHandler Me._ToolStripMenuItem1.Click, handler
- End If
- Me._ToolStripMenuItem1 = WithEventsValue
- If (Not Me._ToolStripMenuItem1 Is Nothing) Then
- AddHandler Me._ToolStripMenuItem1.Click, handler
- End If
- End Set
- End Property
- Friend Overridable Property ToolStripSeparator1 As ToolStripSeparator
- Get
- Return Me._ToolStripSeparator1
- End Get
- Set(ByVal WithEventsValue As ToolStripSeparator)
- Me._ToolStripSeparator1 = WithEventsValue
- End Set
- End Property
- Friend Overridable Property ToolStripSeparator2 As ToolStripSeparator
- Get
- Return Me._ToolStripSeparator2
- End Get
- Set(ByVal WithEventsValue As ToolStripSeparator)
- Me._ToolStripSeparator2 = WithEventsValue
- End Set
- End Property
- Friend Overridable Property txtpass As TextBox
- Get
- Return Me._txtpass
- End Get
- Set(ByVal WithEventsValue As TextBox)
- Me._txtpass = WithEventsValue
- End Set
- End Property
- Friend Overridable Property txtsteam As TextBox
- Get
- Return Me._txtsteam
- End Get
- Set(ByVal WithEventsValue As TextBox)
- Me._txtsteam = WithEventsValue
- End Set
- End Property
- Friend Overridable Property txtuser As TextBox
- Get
- Return Me._txtuser
- End Get
- Set(ByVal WithEventsValue As TextBox)
- Me._txtuser = WithEventsValue
- End Set
- End Property
- Public Shared ReadOnly Property UtcNow As DateTime
- Get
- Dim time As DateTime
- Return time
- End Get
- End Property
- ' Fields
- <AccessedThroughProperty("Button1")> _
- Private _Button1 As Button
- <AccessedThroughProperty("Button2")> _
- Private _Button2 As Button
- <AccessedThroughProperty("Button3")> _
- Private _Button3 As Button
- <AccessedThroughProperty("CheckBox1")> _
- Private _CheckBox1 As CheckBox
- <AccessedThroughProperty("CheckBox2")> _
- Private _CheckBox2 As CheckBox
- <AccessedThroughProperty("ContextMenuStrip1")> _
- Private _ContextMenuStrip1 As ContextMenuStrip
- <AccessedThroughProperty("EntrarNoSiteToolStripMenuItem")> _
- Private _EntrarNoSiteToolStripMenuItem As ToolStripMenuItem
- <AccessedThroughProperty("InfoToolStripMenuItem")> _
- Private _InfoToolStripMenuItem As ToolStripMenuItem
- <AccessedThroughProperty("Label1")> _
- Private _Label1 As Label
- <AccessedThroughProperty("Label2")> _
- Private _Label2 As Label
- <AccessedThroughProperty("Label3")> _
- Private _Label3 As Label
- <AccessedThroughProperty("Label4")> _
- Private _Label4 As Label
- <AccessedThroughProperty("Label5")> _
- Private _Label5 As Label
- <AccessedThroughProperty("NotifyIcon1")> _
- Private _NotifyIcon1 As NotifyIcon
- <AccessedThroughProperty("OpenFileDialog1")> _
- Private _OpenFileDialog1 As OpenFileDialog
- <AccessedThroughProperty("PictureBox2")> _
- Private _PictureBox2 As PictureBox
- <AccessedThroughProperty("SairToolStripMenuItem")> _
- Private _SairToolStripMenuItem As ToolStripMenuItem
- <AccessedThroughProperty("Timer1")> _
- Private _Timer1 As Timer
- <AccessedThroughProperty("Timer2")> _
- Private _Timer2 As Timer
- <AccessedThroughProperty("ToolStripMenuItem1")> _
- Private _ToolStripMenuItem1 As ToolStripMenuItem
- <AccessedThroughProperty("ToolStripSeparator1")> _
- Private _ToolStripSeparator1 As ToolStripSeparator
- <AccessedThroughProperty("ToolStripSeparator2")> _
- Private _ToolStripSeparator2 As ToolStripSeparator
- <AccessedThroughProperty("txtpass")> _
- Private _txtpass As TextBox
- <AccessedThroughProperty("txtsteam")> _
- Private _txtsteam As TextBox
- <AccessedThroughProperty("txtuser")> _
- Private _txtuser As TextBox
- Private Background As Bitmap
- Private components As IContainer
- Private fh As Integer
- Private fw As Integer
- Private Const SRCCOPY As Integer = &HCC0020
- End Class
Undefined
By: Oo | Date: Feb 15 2010 15:27 | Format: None | Expires: never | Size: 57.26 KB | Hits: 1641
Latest pastes
1 hours ago
11 hours ago
1 days ago
2 days ago
2 days ago