Пример #1
0
 private void WebsiteList_SelectionChanged(object sender, SelectionChangedEventArgs e)
 {
     if (WebsiteList.SelectedItem != null)
     {
         _currentWebsite = (Website)WebsiteList.SelectedItem;
         EnterMasterPassword enterMasterPasswordWindow = new EnterMasterPassword(UserId, this);
         enterMasterPasswordWindow.Show();
     }
 }
        private void BtnClickCreateWebsite(object sender, RoutedEventArgs e)
        {
            if (WebsiteNameTxtBox.Text == null || WebsitePasswordTxtBox.Password == null)
            {
                return;
            }

            EnterMasterPassword enterMasterPasswordWindow = new EnterMasterPassword(UserId, this);

            enterMasterPasswordWindow.Show();
        }
        private void BtnClickUpdateWebsite(object sender, RoutedEventArgs e)
        {
            EnterMasterPassword masterPasswordWindow = new EnterMasterPassword(_userId, this);

            masterPasswordWindow.Show();
        }