Esempio n. 1
0
 private void button1_Click(object sender, EventArgs e)
 {
     try
     {
         ServicesForm f = new ServicesForm();
         f.Show();
         this.Hide();
     }
     catch (Exception ex)
     {
         Console.WriteLine(ex.Message);
         throw ex;
     }
 }
Esempio n. 2
0
 private void button1_Click(object sender, EventArgs e)
 {
     try
     {
         RestClient restClient = new RestClient();
         restClient.postRequest(textUser.Text, textPassword.Text);
         ServicesForm f = new ServicesForm();
         f.Show();
         this.Hide();
     }
     catch (Exception ex)
     {
         label3.Visible = true;
         System.Diagnostics.Debug.Write(ex.Message);
         throw ex;
     }
 }