public static void init() { if (obj == null) { obj = new TipWinB1(); } }
private void ok_Click(object sender, RoutedEventArgs e) { //密码是否输入完毕 if ((inputTime == 0 && psw1.Count < 6) || (inputTime == 1 && psw2.Count < 6)) { if (isBussiness1) { TipWinB1.showTip("请输入6位密码", 3000, null); } else { TipWin.showTip("请输入6位密码", 3000, null); } return; } //设置新密码 if (inputStyle == 1) { if (inputTime == 0) { title.Text = "请再次输入新密码"; clearTextBlocks(); inputTime = 1; } else if (inputTime == 1) { if (isEqual()) { if (nextStepPar1 != null) { nextStepPar1(newPsw); } } else { if (isBussiness1) { TipWinB1.showTip("两次密码输入不一致,请重新输入!", 3000, null); } else { TipWin.showTip("两次密码输入不一致,请重新输入!", 3000, null); } reset(); title.Text = "请输入新密码"; } } } //网络校验密码 else if (inputStyle == 2) { if (netPsw == getPsw()) { nextStepPar1(getPsw()); } } }