public Keyboard(VirtualKeyboard keyboard) { InitializeComponent(); var us = UserSettings.Instance; if (us.WindowLocation_VirtualKeyboard.HasValue) { Left = us.WindowLocation_VirtualKeyboard.Value.X; Top = us.WindowLocation_VirtualKeyboard.Value.Y; } this.Closed += new EventHandler(Keyboard_Closed); App.Current.Properties["KeyboardWindow"] = this; _keyboard = keyboard; BuildKeyboard(); }
public MainWindow() { InitializeComponent(); var us = UserSettings.Instance; if (us.WindowLocation_Main.HasValue) { Left = us.WindowLocation_Main.Value.X; Top = us.WindowLocation_Main.Value.Y; } // register this window with the main app. App.Current.Properties["MainWindow"] = this; _virtualKeyboard = new VirtualKeyboard(); if (us.ShowVirtualKeyboard) ShowVirtualKeyboard(); if(us.CheckForUpdates) CheckForUpdates(); }