private string DisplayNumberPad(string keytext)
        {
            string strNumberPadText = string.Empty;
            NumberPadWind ObjNumberpadWind = new NumberPadWind();            

            try
            {

                ObjNumberpadWind.ValueText = keytext;

                if (ObjNumberpadWind.ShowDialogEx(this) == true)
                {
                    if (ObjNumberpadWind.ValueText == "")
                    {
                        strNumberPadText = "0";
                    }
                    else
                    {
                        strNumberPadText = ObjNumberpadWind.ValueText;
                    }
                }
            }
            catch (Exception ex)
            {
                strNumberPadText = ObjNumberpadWind.ValueText;
                ObjNumberpadWind.Close();
                ExceptionManager.Publish(ex);
            }
            return strNumberPadText;

        }
        private string DisplayNumberPad(string keytext)
        {
            string        strNumberPadText = string.Empty;
            NumberPadWind ObjNumberpadWind = new NumberPadWind();

            try
            {
                ObjNumberpadWind.ValueText = keytext;

                if (ObjNumberpadWind.ShowDialogEx(this) == true)
                {
                    if (ObjNumberpadWind.ValueText == "")
                    {
                        strNumberPadText = "0";
                    }
                    else
                    {
                        strNumberPadText = ObjNumberpadWind.ValueText;
                    }
                }
            }
            catch (Exception ex)
            {
                strNumberPadText = ObjNumberpadWind.ValueText;
                ObjNumberpadWind.Close();
                ExceptionManager.Publish(ex);
            }
            return(strNumberPadText);
        }
 private string DisplayKeyboard(string KeyText)
 {
     s_KeyText = "";
     BMC.Presentation.NumberPadWind objKeyboard = new NumberPadWind();
     objKeyboard.Closing              += new System.ComponentModel.CancelEventHandler(objKeyboard_Closing);
     objKeyboard.ValueText             = KeyText;
     objKeyboard.WindowStartupLocation = WindowStartupLocation.CenterScreen;
     objKeyboard.ShowDialog();
     return(s_KeyText);
 }
        private string DisplayNumberPad(string keytext)
        {
            string        strNumberPadText = string.Empty;
            NumberPadWind ObjNumberpadWind = new NumberPadWind();

            ObjNumberpadWind.isPlayerClub = true;

            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";
                            }
                        }
                    }
                }
            }
            catch (Exception ex)
            {
                strNumberPadText = ObjNumberpadWind.ValueText;
                ObjNumberpadWind.Close();
                ExceptionManager.Publish(ex);
            }
            return(strNumberPadText);
        }
Exemple #5
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.Window = ((BMC.Presentation.NumberPadWind)(target));

            #line 7 "..\..\NumberPadWind.xaml"
                this.Window.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.Drag_Event);

            #line default
            #line hidden
                return;

            case 2:
                this.LayoutRoot = ((System.Windows.Controls.Grid)(target));
                return;

            case 3:
                this.ucTicketEntry = ((BMC.Presentation.CTicketEntry)(target));
                return;
            }
            this._contentLoaded = true;
        }
 private string DisplayKeyboard(string KeyText)
 {
     s_KeyText = "";
     BMC.Presentation.NumberPadWind objKeyboard = new NumberPadWind();
     objKeyboard.Closing += new System.ComponentModel.CancelEventHandler(objKeyboard_Closing);
     objKeyboard.ValueText = KeyText;
     objKeyboard.WindowStartupLocation = WindowStartupLocation.CenterScreen;
     objKeyboard.ShowDialog();
     return s_KeyText;
 }
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.Window = ((BMC.Presentation.NumberPadWind)(target));
     
     #line 7 "..\..\NumberPadWind.xaml"
     this.Window.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.Drag_Event);
     
     #line default
     #line hidden
     return;
     case 2:
     this.LayoutRoot = ((System.Windows.Controls.Grid)(target));
     return;
     case 3:
     this.ucTicketEntry = ((BMC.Presentation.CTicketEntry)(target));
     return;
     }
     this._contentLoaded = true;
 }
        private string DisplayNumberPad(string keytext)
        {
            string strNumberPadText = string.Empty;
            NumberPadWind ObjNumberpadWind = new NumberPadWind();
            ObjNumberpadWind.isPlayerClub = true;
            
            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";
                            }
                        }
                    }
                }
            }
            catch (Exception ex)
            {
                strNumberPadText = ObjNumberpadWind.ValueText;
                ObjNumberpadWind.Close();
                ExceptionManager.Publish(ex);
                
            }
            return strNumberPadText;

        }