void onRegistrationResult(DSAHelper.RegisterResult result) { Dispatcher.BeginInvoke(() => { bRegisteringInProgress = false; this.tbRegisterStatus.Text = result.Message; bDeviceRegistered = PCSettings.Registered; if (bDeviceRegistered) DeviceRegistered(); else DeviceUnRegistered(); }); }
private void RegistringWithServer() { if (ValidateRegisterID() && bRegisteringInProgress == false) { bRegisteringInProgress = true; this.tbRegisterStatus.Text = "please do NOT leave this screen while we are registering with Push Coin server..."; dsahelper = new DSAHelper(this.tbRegisterID.Text); dsahelper.OnRegistered += new DSAHelper.OnRegisteredEvent(onRegistrationResult); dsahelper.RegisterWithPushCoinServer(); } }