Пример #1
0
        public MainWindow()
        {
            Registration.LogIn login = new Registration.LogIn();
            login.ShowDialog();
            User user = login.user;

            MessageBox.Show(user.Login + " = " + user.Password);
            InitializeComponent();
            site  = new InstanceContext(this);
            proxy = new ServerServiceClient(site);
            proxy.Auth(user.Login, user.Password);
        }
Пример #2
0
 private void Button_Click(object sender, RoutedEventArgs e)
 {
     user          = new User();
     user.Login    = Login.Text;
     user.Password = Password.Password;
     user          = proxy.Auth(user.Login, user.Password);
     if (user == null)
     {
         Title = "LogIn: Не правильный логин или пароль";
     }
     else
     {
         this.Close();
     }
 }