private void cmbUserName_SelectionChanged(object sender, System.Windows.Controls.SelectionChangedEventArgs e)
        {
            txtpbPassword.Password = "";
            chkMemorize.IsChecked  = false;
            var selectedUser = cmbUserName.SelectedItem as stp_glb_user_selResult;

            if (selectedUser != null && DDB.IP_BelongsToThisSystem(selectedUser.glb_user_client_ip))
            {
                txtpbPassword.Password = selectedUser.glb_user_password;
                chkMemorize.IsChecked  = true;
            }
        }
 public void FindLastUser()
 {
     UsersList = BLL.GetAllRecords_DB();
     for (int j = 0; j < UsersList.Count; j++)
     {
         stp_glb_user_selResult user = UsersList[j];
         if (DDB.IP_BelongsToThisSystem(user.glb_user_client_ip))
         {
             cmbUserName.SelectedIndex = j;
             return;
         }
     }
 }