private string DisplayKeyboard(string KeyText) { s_KeyText = ""; KeyboardInterface objKeyboard = new KeyboardInterface(); objKeyboard.Closing += new System.ComponentModel.CancelEventHandler(objKeyboard_Closing); objKeyboard.KeyString = KeyText; objKeyboard.WindowStartupLocation = WindowStartupLocation.CenterScreen; objKeyboard.ShowDialog(); return s_KeyText; }
private string DisplayKeyboard(string KeyText) { s_KeyText = ""; KeyboardInterface objKeyboard = new KeyboardInterface(); objKeyboard.Closing += new System.ComponentModel.CancelEventHandler(objKeyboard_Closing); objKeyboard.KeyString = KeyText; objKeyboard.WindowStartupLocation = WindowStartupLocation.CenterScreen; objKeyboard.ShowDialog(); return(s_KeyText); }
private string DisplayKeyboard(string keyText, string type) { _sKeyText = ""; var objKeyboard = new KeyboardInterface(); if (type == "Pwd") { objKeyboard.IsPwd = true; } objKeyboard.Closing += ObjKeyboardClosing; objKeyboard.KeyString = keyText; objKeyboard.Top = Top + Height - objKeyboard.Height; objKeyboard.Left = Left + Width / 2 - objKeyboard.Width / 2; objKeyboard.ShowDialogEx(this); return _sKeyText; }
private string DisplayKeyboard(string KeyText, string type) { s_KeyText = ""; KeyboardInterface objKeyboard = new KeyboardInterface(); if (type == "Pwd") { objKeyboard.IsPwd = true; } objKeyboard.Closing += new System.ComponentModel.CancelEventHandler(objKeyboard_Closing); objKeyboard.KeyString = KeyText; objKeyboard.Top = this.Top + this.Height - objKeyboard.Height; objKeyboard.Left = this.Left + this.Width / 2 - objKeyboard.Width / 2; objKeyboard.ShowDialogEx(this); return(s_KeyText); }
string DisplayKeyboard(string keyText, string type) { _sKeyText = ""; var objKeyboard = new KeyboardInterface(); if (type == "Pwd") { objKeyboard.IsPwd = true; } objKeyboard.Closing += ObjKeyboardClosing; objKeyboard.KeyString = keyText; objKeyboard.Top = Top + Height - objKeyboard.Height; objKeyboard.Left = Left + Width / 2 - objKeyboard.Width / 2; objKeyboard.ShowDialog(); return(_sKeyText); }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.Keyboard1 = ((BMC.Presentation.KeyboardInterface)(target)); return; case 2: this.LayoutRoot = ((System.Windows.Controls.Grid)(target)); return; case 3: this.objKeyboard = ((BMC.Presentation.CKeyboard)(target)); return; } this._contentLoaded = true; }
private string DisplayKeyboard(string KeyText, string type) { strKeyText = ""; KeyboardInterface objKeyboard = new KeyboardInterface(); if (type == "Pwd") { objKeyboard.IsPwd = true; } objKeyboard.Closing += new System.ComponentModel.CancelEventHandler(objKeyboard_Closing); objKeyboard.KeyString = KeyText; Point locationFromScreen = this.PointToScreen(new Point(0, 0)); PresentationSource source = PresentationSource.FromVisual(this); System.Windows.Point targetPoints = source.CompositionTarget.TransformFromDevice.Transform(locationFromScreen); objKeyboard.Top = targetPoints.Y + SiteSetup.SiteSetupInstance.Height / 2; objKeyboard.Left = targetPoints.X; objKeyboard.ShowDialogEx(this); return(strKeyText); }
public string DisplayKeyboard(string keyText) { strKeyText = ""; KeyboardInterface objKeyboard = null; try { Window w = Window.GetWindow(this); Point pt = default(Point); Size sz = default(Size); if (w != null) { pt = new Point(w.Left, w.Top); sz = new Size(w.Width, w.Height); } objKeyboard = new KeyboardInterface(); objKeyboard.Owner = w; objKeyboard.Closing += new System.ComponentModel.CancelEventHandler(objKeyboard_Closing); objKeyboard.KeyString = keyText; objKeyboard.Top = pt.Y + (sz.Height - objKeyboard.Height); objKeyboard.Left = pt.X + (sz.Width / 2) - (objKeyboard.Width / 2); objKeyboard.ShowInTaskbar = false; objKeyboard.ShowDialog(); if (objKeyboard != null) { objKeyboard.Closing -= this.objKeyboard_Closing; } } catch (Exception ex) { ExceptionManager.Publish(ex); } finally { } return(strKeyText); }
// public string DisplayKeyboard(string keyText) { _sKeyText = ""; KeyboardInterface objKeyboard = null; try { Window w = Window.GetWindow(this); Point pt = default(Point); Size sz = default(Size); if (w != null) { pt = new Point(w.Left, w.Top); sz = new Size(w.Width, w.Height); } objKeyboard = new KeyboardInterface(); objKeyboard.Owner = w; objKeyboard.Closing += ObjKeyboardClosing; objKeyboard.KeyString = keyText; objKeyboard.Top = pt.Y + (sz.Height - objKeyboard.Height); objKeyboard.Left = pt.X + (sz.Width / 2) - (objKeyboard.Width / 2); objKeyboard.ShowInTaskbar = false; objKeyboard.ShowDialog(); if (objKeyboard != null) { objKeyboard.Closing -= ObjKeyboardClosing; } } catch (Exception ex) { ExceptionManager.Publish(ex); } finally { } return _sKeyText; }
private string DisplayKeyboard(string KeyText, string type) { strKeyText = ""; KeyboardInterface objKeyboard = new KeyboardInterface(); if (type == "Pwd") { objKeyboard.IsPwd = true; } objKeyboard.Closing += new System.ComponentModel.CancelEventHandler(objKeyboard_Closing); objKeyboard.KeyString = KeyText; Point locationFromScreen = this.PointToScreen(new Point(0, 0)); PresentationSource source = PresentationSource.FromVisual(this); System.Windows.Point targetPoints = source.CompositionTarget.TransformFromDevice.Transform(locationFromScreen); objKeyboard.Top = targetPoints.Y + SiteSetup.SiteSetupInstance.Height / 2; objKeyboard.Left = targetPoints.X; objKeyboard.ShowDialogEx(this); return strKeyText; }
private string DisplayKeyboard(string KeyText, string type) { s_KeyText = ""; KeyboardInterface objKeyboard = new KeyboardInterface(); if (type == "Pwd") { objKeyboard.IsPwd = true; } objKeyboard.Closing += new System.ComponentModel.CancelEventHandler(objKeyboard_Closing); objKeyboard.KeyString = KeyText; objKeyboard.Top = this.Top + this.Height - objKeyboard.Height; objKeyboard.Left = this.Left + this.Width / 2 - objKeyboard.Width / 2; objKeyboard.ShowDialogEx(this); return s_KeyText; }