public MainWindow()
 {
     InitializeComponent();
     log4net.Config.XmlConfigurator.Configure();
     LoginPopup window = new LoginPopup();
     bool? val=window.ShowDialog();
     loginName.Text = window.LoginId;
 }
 private void ChangePassword(object sender, RoutedEventArgs e)
 {
     LoginPopup popup = new LoginPopup(true);
     var passed= popup.ShowDialog();
     if (!string.IsNullOrEmpty(popup.Password))
     {
         CoreOperations.EditPassword(loginName.Text, popup.Password);
     }
 }