Example #1
0
        private void btnStart_Click(object sender, EventArgs e)
        {
            if (hasStarted == true)
            {
                timer1.Stop();
                btnStart.Text = "Start";
                hasStarted    = false;
            }
            else
            {
                timer1.Start();
                btnStart.Text = "Stop";
                hasStarted    = true;

                int Id = DBCalls.countNoOfConstantAlertRecords();
                DBCalls.createConstantAlertInfo(Id, tbEmail.Text, tbPassword.Text, filepath, MD5Hash, SHA256Hash, SHA512Hash);
            }
        }