private string DisplayNumPadWin(string keytext) { string strNumPadText = string.Empty; NumPadWin ObjNumpadWin = new NumPadWin(); try { ObjNumpadWin.ValueText = keytext; if (ObjNumpadWin.ShowDialog() == true) { if (ObjNumpadWin.ValueText == "") { strNumPadText = "0"; } else { strNumPadText = ObjNumpadWin.ValueText; } } } catch (Exception ex) { strNumPadText = ObjNumpadWin.ValueText; ObjNumpadWin.Close(); ExceptionManager.Publish(ex); } return(strNumPadText); }
private string DisplayNumberPad(string keytext) { string strNumberPadText = string.Empty; NumPadWin ObjNumberpadWind = new NumPadWin(); try { ObjNumberpadWind.ValueText = keytext; if (ObjNumberpadWind.ShowDialog() == true) { if (ObjNumberpadWind.ValueText == "") { strNumberPadText = "0"; } else { //Regex objRegexNumberValidate = new Regex("^[0-9]+$", RegexOptions.IgnoreCase); //MatchCollection objMatchCollect; if (ObjNumberpadWind.ValueText != "") { //objMatchCollect = objRegexNumberValidate.Matches(ObjNumberpadWind.ValueText); //if (objMatchCollect.Count > 0) //{ // strNumberPadText = GetPlayerInfo(ObjNumberpadWind.ValueText); //} //else //{ // strNumberPadText = "1"; //} strNumberPadText = ObjNumberpadWind.ValueText; } } } } catch (Exception ex) { strNumberPadText = ObjNumberpadWind.ValueText; ObjNumberpadWind.Close(); ExceptionManager.Publish(ex); } return(strNumberPadText); }
private string DisplayNumPadWin(string keytext) { string strNumPadText = string.Empty; NumPadWin ObjNumpadWin = new NumPadWin(); try { ObjNumpadWin.ValueText = keytext; if (ObjNumpadWin.ShowDialog() == true) { if (ObjNumpadWin.ValueText == "") { strNumPadText = "0"; } else { strNumPadText = ObjNumpadWin.ValueText; } } } catch (Exception ex) { strNumPadText = ObjNumpadWin.ValueText; ObjNumpadWin.Close(); ExceptionManager.Publish(ex); } return strNumPadText; }
private string DisplayNumberPad(string keytext) { string strNumberPadText = string.Empty; NumPadWin ObjNumberpadWind = new NumPadWin(); try { ObjNumberpadWind.ValueText = keytext; if (ObjNumberpadWind.ShowDialog() == true) { if (ObjNumberpadWind.ValueText == "") { strNumberPadText = "0"; } else { //Regex objRegexNumberValidate = new Regex("^[0-9]+$", RegexOptions.IgnoreCase); //MatchCollection objMatchCollect; if (ObjNumberpadWind.ValueText != "") { //objMatchCollect = objRegexNumberValidate.Matches(ObjNumberpadWind.ValueText); //if (objMatchCollect.Count > 0) //{ // strNumberPadText = GetPlayerInfo(ObjNumberpadWind.ValueText); //} //else //{ // strNumberPadText = "1"; //} strNumberPadText = ObjNumberpadWind.ValueText; } } } } catch (Exception ex) { strNumberPadText = ObjNumberpadWind.ValueText; ObjNumberpadWind.Close(); ExceptionManager.Publish(ex); } return strNumberPadText; }