Interaction logic for RegistrationWindow.xaml
Inheritance: System.Windows.Window
Example #1
0
        public bool resetPassword()
        {
            _errors = "";
            RegistrationWindow win = new RegistrationWindow();
            win.ResizeMode = System.Windows.ResizeMode.NoResize;
            bool? res = win.ShowDialog();
            if (res == true)
                KeyStorePassword = win.tbPassword.Password;

            return res == true;
        }
        /// <summary>
        /// Open BlackBerry Signing in the default browser and start a thread that will move the downloaded 
        /// bbidtoken.csk file to the right folder. Then, it is presented the Regisration Dialog.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnRegister_Click(object sender, RoutedEventArgs e)
        {
            Browser wb = new Browser(this);
            wb.ShowDialog();

            if ((!signingData.Registered) && (File.Exists(signingData.bbidtokenPath)))
            {
                RegistrationWindow win = new RegistrationWindow();
                win.ResizeMode = System.Windows.ResizeMode.NoResize;
                bool? res = win.ShowDialog();
            }

            signingData.RefreshScreen();
        }
Example #3
0
        public bool resetPassword()
        {
            System.Windows.Forms.Cursor currentCursor = System.Windows.Forms.Cursor.Current;
            Mouse.OverrideCursor = System.Windows.Input.Cursors.Arrow;

            _errors = "";
            RegistrationWindow win = new RegistrationWindow();
            win.ResizeMode = System.Windows.ResizeMode.NoResize;
            bool? res = win.ShowDialog();
            if (res == true)
                KeyStorePassword = win.tbPassword.Password;

            if (currentCursor.ToString().Contains("Wait"))
                Mouse.OverrideCursor = System.Windows.Input.Cursors.Wait;

            return res == true;
        }
Example #4
0
 /// <summary>
 /// Show the Regisration Dialog
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void btnRegister_Click(object sender, RoutedEventArgs e)
 {
     RegistrationWindow win = new RegistrationWindow();
     bool? res = win.ShowDialog();
     UpdateUI(File.Exists(certPath));
 }