Ejemplo n.º 1
0
 private void startBtn_Click(object sender, EventArgs e)
 {
     if (predictionRadBtn.Checked)
     {
         errorRTxt.Text = "";
         running        = new RunningWnd(this);
         running.Show();
         running.Start();
         if (errorRTxt.Text == "")
         {
             Hide();
         }
         else
         {
             running.Hide();
         }
     }
     else if (learningRadBtn.Checked)
     {
         errorRTxt.Text = "";
         login          = new LoginWnd(this);
         login.Show();
         Hide();
     }
 }
Ejemplo n.º 2
0
        private void submitBtn_Click(object sender, EventArgs e)
        {
            bool passed = false;

            if (running == null)
            {
                running = new RunningWnd(parent);
            }
            if (running.client.isConnected())
            {
                if (running.client.Login(usernameRTxt.Text, passwordRTxt.Text))
                {
                    running.Show();
                    Hide();
                    running.Start();
                }
                else
                {
                    errorTxt.Text = "Credentials are not valid";
                    //ask for resubmission with new username
                }
            }
            else
            {
                errorTxt.Text = "Could not connect to server";
            }
        }
Ejemplo n.º 3
0
 private void submitBtn_Click(object sender, EventArgs e)
 {
     if (running == null)
     {
         running = new RunningWnd(parent);
     }
     if (running.client.Register(usernameRTxt.Text, passwordRTxt.Text))
     {
         running.Show();
         Hide();
         running.Start();
     }
     else
     {
         //ask for resubmission with new username
     }
 }