/// <summary> /// UserName_TextChanged event /// </summary> private void UserName_TextChanged(object sender, System.EventArgs e) { if (!SyncDisabled) { userPropertyPage.SyncSharedUserData(this, true); } }
/// <summary> /// cbEnabled_CheckedChanged event /// </summary> private void cbEnabled_CheckedChanged(object sender, EventArgs e) { if (!SyncDisabled) { userPropertyPage.SyncSharedUserData(this, true); } }
/// <summary> /// newkeyBtn_Click event /// </summary> private void newkeyBtn_Click(object sender, EventArgs e) { Cursor crs = this.Cursor; try { MMCService.NewUserKey(_upn); _secretkey = MMCService.GetEncodedUserKey(_upn); this.DisplayKey.Text = _secretkey; this.qrCodeGraphic.Text = MMCService.GetQRCodeValue(_upn, this.DisplayKey.Text); if (!SyncDisabled) { userPropertyPage.SyncSharedUserData(this, true); } } catch (Exception ex) { this.Cursor = crs; MessageBoxParameters messageBoxParameters = new MessageBoxParameters { Text = ex.Message, Buttons = MessageBoxButtons.OK, Icon = MessageBoxIcon.Error }; userPropertyPage.ParentSheet.ShowDialog(messageBoxParameters); } finally { this.Cursor = crs; } }
/// <summary> /// newkeyBtn_Click event /// </summary> private void newkeyBtn_Click(object sender, EventArgs e) { MMCService.NewUserKey(_upn); _secretkey = MMCService.GetEncodedUserKey(_upn); this.DisplayKey.Text = _secretkey; this.qrCodeGraphic.Text = MMCService.GetQRCodeValue(_upn, this.DisplayKey.Text); if (!SyncDisabled) { userPropertyPage.SyncSharedUserData(this, true); } }