private void StackPanel_Checked(object sender, System.Windows.RoutedEventArgs e)
 {
     RadioButton rb = e.OriginalSource as RadioButton;
     if ((rb.Content as string) == "登陆密码")
         _passwordType = PASSWORD_TYPE.Trade;
     else
         _passwordType = PASSWORD_TYPE.Funds;
 }
        private void CommandBinding_Executed_Password(object sender, System.Windows.Input.ExecutedRoutedEventArgs e)
        {
            this.DialogResult = true;
            OldPassword = PbOld.Password;
            NewPassword = PbNew.Password;
            PasswordType = _passwordType;
            //StockTradeViewMode vm = DataContext as StockTradeViewMode;

            //if (_passwordType == PASSWORD_TYPE.Trade)
            //    vm.ModifyLoginPassword(PbOld.Password, PbNew.Password);
            //else
            //    vm.ModifyFundsPassword(PbOld.Password, PbNew.Password);

            //PbOld.Password = null;
            //PbNew.Password = null;
            //PbNewConfirm.Password = null;
        }