コード例 #1
0
 /// <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);
     }
 }
コード例 #3
0
        /// <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;
            }
        }
コード例 #4
0
 /// <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);
     }
 }