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); }
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); }
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; }
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; }