コード例 #1
0
        private void Back_Click(object sender, RoutedEventArgs e)
        {
            MenuClient Window = new MenuClient();

            Window.Show();
            this.Close();
        }
コード例 #2
0
        private void CreateRequest_Click(object sender, RoutedEventArgs e)
        {
            MenuClient cl = new MenuClient();

            cl.Show();
            this.Close();
        }
コード例 #3
0
        private void CreateRequest_Click(object sender, RoutedEventArgs e)
        {
            ServiceReference1.Service1Client  Service = new ServiceReference1.Service1Client();
            ServiceReference1.Service1Request Request = new ServiceReference1.Service1Request();
            Request.ProjectName    = ProjectName.Text;
            Request.Competition_ID = ID_Competition;
            Service.AddRequest(Request);
            MenuClient Window = new MenuClient();

            Window.Show();
            this.Close();
        }
コード例 #4
0
 private void Authorization1_Click(object sender, RoutedEventArgs e)
 {
     ServiceReference1.Service1Client Service = new ServiceReference1.Service1Client();
     if (Service.Authorisation(Convert.ToString(Login.Text), Convert.ToString(Password.Password)).admin == false && Service.Authorisation(Convert.ToString(Login.Text), Convert.ToString(Password.Password)).error == false)
     {
         IDUser = Service.Authorisation(Convert.ToString(Login.Text), Convert.ToString(Password.Password)).id_user;
         MenuClient Window = new MenuClient();
         Window.Show();
         this.Close();
     }
     else if (Service.Authorisation(Convert.ToString(Login.Text), Convert.ToString(Password.Password)).admin == true && Service.Authorisation(Convert.ToString(Login.Text), Convert.ToString(Password.Password)).error == false)
     {
         IDUser = Service.Authorisation(Convert.ToString(Login.Text), Convert.ToString(Password.Password)).id_user;
         MenuAdmin Window = new MenuAdmin();
         Window.Show();
         this.Close();
     }
     else
     {
         MessageBox.Show(Service.Authorisation(Convert.ToString(Login.Text), Convert.ToString(Password.Password)).error_message, "Внимание");
     }
 }