Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // TODO: Create methods containing your application logic.
- [EnableClientAccess()]
- public class DomainService1 : DomainService
- {
- LicensedClass validation = new LicensedClass();
- [Invoke]
- public string licenseValidation()
- {
- return validation.Validation();
- }
- [Invoke]
- public string licenseInformation()
- {
- return validation.LicFile();
- }
- }
- public partial class MainPage : UserControl
- {
- DomainService1 domain = new DomainService1();
- public MainPage()
- {
- InitializeComponent();
- }
- public void CheckText() {
- InvokeOperation<string> operation3 = domain.licenseInformation();
- operation3.Completed += (x, y) =>
- {
- if (!operation3.HasError)
- { textBox2.Text = operation3.Value; }
- else { textBox1.Text = "error"; }
- };
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement