Beispiel #1
0
        private void Existing_Profile_Click(object sender, RoutedEventArgs e)
        {
            ExistingWindow ss = new ExistingWindow(null);

            ss.Show();
            this.Hide();
        }
Beispiel #2
0
        /// <summary>
        /// Log in
        /// </summary>
        private void Login()
        {
            string input = Password_TextBox.Password;

            if (null != _dataVaultInterface)
            {
                // Verify password
                StatusCode status = _dataVaultInterface.Login(input);

                // Check return value
                if (status == StatusCode.NO_ERROR)
                {
                    // Pass the interface to next window
                    ExistingWindow existingWindow = new ExistingWindow(_dataVaultInterface);
                    existingWindow.Show();
                    this.Close();
                }
                else
                {
                    ShowMessageBox(status);
                }
            }
        }