Exemplo n.º 1
0
 private void btnRight_Click(object sender, EventArgs e)
 {
     DalHelper.Add(idatual, "Right", 0, 0, "");
     win32.SetForegroundWindow(otpHandle);
     SendKeys.SendWait("{Right}");
     idatual++;
     update();
 }
Exemplo n.º 2
0
        private void btnRegister_Click(object sender, EventArgs e)
        {
            var salt = Guid.NewGuid().ToString();
            var psw  = Password.Hash(registerPsw.Text + salt);

            DalHelper.Add(registerUser.Text, psw, salt);
            MessageBox.Show("Ok!");
        }
Exemplo n.º 3
0
        private void btnColor_MouseUp(object sender, MouseEventArgs e)
        {
            int x = MousePosition.X + 8;
            int y = MousePosition.Y;

            DalHelper.Add(idatual, "If Color", x, y, GrabPixel(x, y));
            idatual++;
            update();
        }
Exemplo n.º 4
0
 public void Add(int studentID, string studentName)
 {
     DalHelper.Add(
         new Student()
     {
         StudentID = studentID, StudentName = studentName
     }
         );
 }
Exemplo n.º 5
0
 private void wButton_Click(object sender, EventArgs e)
 {
     DalHelper.Add(idatual, "Waypoint", Setting.charx, Setting.chary, "");
     idatual++;
     update();
 }
Exemplo n.º 6
0
 private void button1_Click_1(object sender, EventArgs e)
 {
     DalHelper.Add(idatual, "Pokemon", 0, 0, waittime.Text);
     idatual++;
     update();
 }
Exemplo n.º 7
0
 private void btnLogout_Click(object sender, EventArgs e)
 {
     DalHelper.Add(idatual, "Logout", 0, 0, "");
     idatual++;
     update();
 }
Exemplo n.º 8
0
 private void btnTP_Click(object sender, EventArgs e)
 {
     DalHelper.Add(idatual, "Teleport", 0, 0, "Saffron");
     idatual++;
     update();
 }
Exemplo n.º 9
0
 private void button5_Click(object sender, EventArgs e)
 {
     DalHelper.Add(idatual, "SAY", 0, 0, txtLabel.Text);
     idatual++;
     update();
 }
Exemplo n.º 10
0
 private void btnElse_Click(object sender, EventArgs e)
 {
     DalHelper.Add(idatual, "Else", 0, 0, "");
     idatual++;
     update();
 }
Exemplo n.º 11
0
 private void btnGotoLabel_Click(object sender, EventArgs e)
 {
     DalHelper.Add(idatual, "Goto Label", 0, 0, txtLabel.Text);
     idatual++;
     update();
 }
Exemplo n.º 12
0
 private void button4_MouseUp(object sender, MouseEventArgs e)
 {
     DalHelper.Add(idatual, "RClick", MousePosition.X + 8, MousePosition.Y, "");
     idatual++;
     update();
 }
Exemplo n.º 13
0
 private void btnWait_Click(object sender, EventArgs e)
 {
     DalHelper.Add(idatual, "Wait", 0, 0, waittime.Text);
     idatual++;
     update();
 }
Exemplo n.º 14
0
 private void button1_Click(object sender, EventArgs e)
 {
     DalHelper.Add(idatual, "Test", 100, 200, "");
     idatual++;
     update();
 }
Exemplo n.º 15
0
 public void Add(Student student)
 {
     DalHelper.Add(student);
 }