Professional Documents
Culture Documents
Imports System.Windows.Forms.LinkLabel
Imports Microsoft.VisualBasic
Imports Microsoft.VisualBasic.CompilerServices
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Collections.Specialized
Imports System.ComponentModel
Imports System.Data.SqlClient
Imports System.Diagnostics
Imports System.Drawing
Imports System.IO
Imports System.Management
Imports System.Net
Imports System.Runtime.CompilerServices
Imports System.Text
Imports System.Threading
Imports System.Windows.Forms
'----------------------------------------' Imports
'----------------------------------------------------------------------------'
'---------------------------------------------------------------------------'
'----------------------------------------' declaraoes aparti
Dim quantidade As Long = 0
Private Function cbCartao() As Object
Throw New NotImplementedException
End Function
Private Sub f()
Me.DataGridView1.Rows.Remove(Me.DataGridView1.Rows.Item(0))
End Sub
Public Function deletaprimeralinha(ByVal arquivo As String) As Object
Try
Dim num2 As Integer
Dim reader As New StreamReader(arquivo)
Dim strArray As String() = New String(2 - 1) {}
Dim index As Integer = 0
Do
strArray(index) = reader.ReadLine
index += 1
num2 = 1
Loop While (index <= num2)
Me.TextBox2.Text = strArray(0)
Dim list As New List(Of String)(File.ReadAllLines(arquivo))
list.RemoveAt(0)
reader.Dispose()
reader.Close()
File.WriteAllLines(arquivo, list.ToArray)
Catch exception1 As Exception
ProjectData.SetProjectError(exception1)
Dim exception As Exception = exception1
ProjectData.ClearProjectError()
End Try
Return ""
End Function
Private ar As String
'----------------------------------------' declaraoes aparti
'-------------------------------------------------------------------------------------------------------------
End Try
'----------------------------------------' Preenchimento da Donate ( LIN
K ) TIMER 1
'---------------------------------------------------------------------------'
'----------------------------------------' Mensagens de Aprovadas e Repr
ovadas TIMER 2
Try
If InStr(WebBrowser1.Document.Body.InnerText, "No autorizada") Then '
Reprovadas
Me.ListBox2.Items.Add("[ $Die ] " + Me.DataGridView1.CurrentRow.
Cells(0).Value + " : " + Me.DataGridView1.CurrentRow.Cells(1).Value + " : " + Me
.DataGridView1.CurrentRow.Cells(2).Value + " : " + Me.DataGridView1.CurrentRow.C
ells(3).Value)
Label6.Text = ListBox2.Items.Count.ToString
Me.deletaprimeralinha(Me.ar)
Me.f()
Timer2.Stop()
Timer3.Start()
Label5.Text = "Reprovada"
Label5.ForeColor = Color.Red
ElseIf InStr(WebBrowser1.Document.Body.InnerText, "Autorizada") Then
' Aprovadas
Me.ListBox1.Items.Add("[ $Live ] " + Me.DataGridView1.CurrentRow
.Cells(0).Value + " | " + Me.DataGridView1.CurrentRow.Cells(1).Value + " | " + M
e.DataGridView1.CurrentRow.Cells(2).Value + " | " + Me.DataGridView1.CurrentRow.
Cells(3).Value)
Label7.Text = ListBox1.Items.Count.ToString
Beep()
Me.deletaprimeralinha(Me.ar)
Me.f()
Timer3.Start()
Timer2.Stop()
Label5.Text = "Aprovada"
Label5.ForeColor = Color.Green
End If
Catch ex As Exception
End Try
'----------------------------------------' Mensagens de Aprovada
s e Reprovadas TIMER 2
'---------------------------------------------------------------------------'
'----------------------------------------' Navega Para o Google
TIMER 3
Try
Me.tContador.Start()
Dim tmn As Integer
For tmn = 0 To DataGridView1.ColumnCount - 1
If tmn = DataGridView1.ColumnCount - 1 Then
DataGridView1.Columns(tmn).AutoSizeMode = DataGridViewAutoSizeCo
lumnMode.Fill
Else
DataGridView1.Columns(tmn).AutoSizeMode = DataGridViewAutoSizeCo
lumnMode.DisplayedCells
End If
Next
'----------------------------------------' Botao Carregar
'---------------------------------------------------------------------------'
'----------------------------------------' Botao Iniciar
Timer1.Start() ' incia timer
'----------------------------------------' Botao Iniciar
'---------------------------------------------------------------------------'
'----------------------------------------' Botao Pausar
Timer1.Stop() 'pausar timer
Timer2.Stop() 'pausar timer
Timer3.Stop() 'pausar timer
Timer4.Stop() 'pausar timer
WebBrowser1.Navigate("Link") 'Carrega a Donate
'----------------------------------------' Botao Pausar
'---------------------------------------------------------------------------'
'----------------------------------------' Botao Reiniciar
Timer1.Stop() 'pausar timer
Timer2.Stop() 'pausar timer
Timer3.Stop() 'pausar timer
MsgBox("Seu Processo Vai Ser Reiniciado Apartir De Agora", vbOK, "Notifi
cao")
Timer4.Start() 'incia timer
'----------------------------------------' Botao Reiniciar
'---------------------------------------------------------------------------'
'----------------------------------------' Botao Salvar
Dim salvarComo As SaveFileDialog = New SaveFileDialog()
Dim caminho As DialogResult
Dim fluxoTexto As IO.StreamWriter
Dim Arquivo As String
salvarComo.CheckFileExists = False
salvarComo.Title = "Text Files |.txt|*.txt"
salvarComo.Filter = ".txt|*.txt|All files|*.*"
caminho = salvarComo.ShowDialog
Arquivo = salvarComo.FileName
If Arquivo = Nothing Then
MessageBox.Show("Invalid File", "Save !", MessageBoxButtons.OK)
Else
fluxoTexto = New IO.StreamWriter(Arquivo)
For i As Integer = 0 To ListBox1.Items.Count - 1
fluxoTexto.WriteLine(ListBox1.Items(i).ToString())
Next
fluxoTexto.WriteLine("")
fluxoTexto.Close()
end if
'----------------------------------------' Botao Salvar
'---------------------------------------------------------------------------'