using Client.ISServiceRef;
using Client.ViewModel;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace Client.View
{
    /// <summary>
    /// Interaction logic for AddDepartmentView.xaml
    /// </summary>
    public partial class ChangePasswordView : Window, IClosable
    {
        public ChangePasswordView()
        {
            InitializeComponent();
            this.DataContext = new ChangePasswordViewModel();
        }

        private void OldPasswordBox_PasswordChanged(object sender, RoutedEventArgs e)
        {
            ((ChangePasswordViewModel)this.DataContext).OldPassword = ((PasswordBox)sender).Password;

        }

        private void PasswordBox_PasswordChanged(object sender, RoutedEventArgs e)
        {
            ((ChangePasswordViewModel)this.DataContext).NewPassword = ((PasswordBox)sender).Password;
        }

        private void PasswordBox_PasswordChanged_1(object sender, RoutedEventArgs e)
        {
            ((ChangePasswordViewModel)this.DataContext).NewPasswordCheck = ((PasswordBox)sender).Password;
        }
    }
}
