public WindowsKeyboardSwitchingAdapter(WinKeyboardAdaptor adaptor)
 {
     _adaptor = adaptor;
     Timer    = new Timer {
         Interval = 500
     };
     Timer.Tick   += OnTimerTick;
     Timer.Enabled = true;
 }
		/// <summary>
		/// Initializes a new instance of the
		/// <see cref="T:SIL.Windows.Forms.Keyboarding.Windows.WinKeyboardDescription"/> class.
		/// </summary>
		internal WinKeyboardDescription(string id, string name, string layout, string locale, bool isAvailable,
			IInputLanguage inputLanguage, WinKeyboardAdaptor engine, string localizedName, TfInputProcessorProfile profile)
			: base(id, name, layout, locale, isAvailable, engine)
		{
			InputLanguage = inputLanguage;
			_localizedName = localizedName;
			InputProcessorProfile = profile;
			ConversionMode = (int) (Win32.IME_CMODE.NATIVE | Win32.IME_CMODE.SYMBOL);
			_useNfcContext = !IsKeymanKeyboard(profile);
		}
 /// <summary>
 /// Initializes a new instance of the
 /// <see cref="T:SIL.Windows.Forms.Keyboarding.Windows.WinKeyboardDescription"/> class.
 /// </summary>
 internal WinKeyboardDescription(string id, string name, string layout, string locale, bool isAvailable,
                                 IInputLanguage inputLanguage, WinKeyboardAdaptor engine, string localizedName, TfInputProcessorProfile profile)
     : base(id, name, layout, locale, isAvailable, engine)
 {
     InputLanguage         = inputLanguage;
     _localizedName        = localizedName;
     InputProcessorProfile = profile;
     ConversionMode        = (int)(Win32.IME_CMODE.NATIVE | Win32.IME_CMODE.SYMBOL);
     _useNfcContext        = !IsKeymanKeyboard(profile);
 }
			public TfLanguageProfileNotifySink(WinKeyboardAdaptor keyboardAdaptor)
			{
				_keyboardAdaptor = keyboardAdaptor;
			}
Exemple #5
0
 internal WinKeyboardDescription(string keyboardId, string localizedKeyboardName, string inputLanguageLayoutName, string cultureName, bool isAvailable, IInputLanguage inputLanguage, WinKeyboardAdaptor engine) : base(keyboardId, localizedKeyboardName, inputLanguageLayoutName, cultureName, isAvailable, engine.SwitchingAdaptor)
 {
     InputLanguage  = inputLanguage;
     _localizedName = localizedKeyboardName;
     ConversionMode = (int)(Win32.IME_CMODE.NATIVE | Win32.IME_CMODE.SYMBOL);
     _useNfcContext = IsKeymanKeyboard(cultureName);
 }
 public TfLanguageProfileNotifySink(WinKeyboardAdaptor keyboardAdaptor)
 {
     _keyboardAdaptor = keyboardAdaptor;
 }