Example #1
0
 private void button1_Click(object sender, RoutedEventArgs e)
 {
     string userId = new HLProxy(_client).Login(LoginModel);
     if(!string.IsNullOrEmpty(userId))
     {
         DialogResult = true;
     }
 }
Example #2
0
        private void OnGet()
        {
            HLProxy proxy = new HLProxy(_client);
            LoginModel = proxy.GetLoginModel();

            byte[] data = proxy.GetVerifyImage(LoginModel.VerifyNumber);
            BitmapImage bi = new BitmapImage();
            bi.BeginInit();
            bi.StreamSource = new MemoryStream(data);
            bi.EndInit();
            image1.Source = bi;

            this.DataContext = LoginModel;
        }