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;
 }
Example #2
0
        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;
            }
        }
Example #3
0
        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;
        }
Example #4
0
 public frmSetPassword(PASSWORD_TYPE type)
 {
     InitializeComponent();
     _passwordType = type;
 }
        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;
        }