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.ShowDialog(); return(_sKeyText); }
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.ShowDialog(); return _sKeyText; }