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); }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.Window = ((BMC.Presentation.NumPadWin)(target)); #line 8 "..\..\NumPadWin.xaml" this.Window.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.Drag_Event); #line default #line hidden return; case 2: this.LayoutRoot = ((System.Windows.Controls.StackPanel)(target)); return; case 3: this.vcValueCalcComp = ((BMC.Presentation.ValueCalcComp)(target)); return; case 4: this.pnlButtons = ((System.Windows.Controls.StackPanel)(target)); return; case 5: this.Button_11 = ((System.Windows.Controls.Button)(target)); #line 14 "..\..\NumPadWin.xaml" this.Button_11.Click += new System.Windows.RoutedEventHandler(this.EnterClick); #line default #line hidden return; case 6: this.Button_12 = ((System.Windows.Controls.Button)(target)); #line 15 "..\..\NumPadWin.xaml" this.Button_12.Click += new System.Windows.RoutedEventHandler(this.CancelClick); #line default #line hidden return; } this._contentLoaded = true; }
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; }