private void SetFocus()
 {
     this.Focus();
     ClientInterface.SendCommand(new ConsoleCommand("GotFocus"));
 }
 protected override void OnLostFocus(System.Windows.RoutedEventArgs e)
 {
     base.OnLostFocus(e);
     ClientInterface.SendCommand(new ConsoleCommand("LostFocus"));
 }
 public void Run()
 {
     ClientInterface.Start(m_commandLine);
 }
 public void Stop()
 {
     ClientInterface.Release();
 }
        protected override HandleRef BuildWindowCore(HandleRef hwndParent)
        {
            IntPtr windowHandle = ClientInterface.InitalizeWindow(hwndParent.Handle);

            return(new HandleRef(this, windowHandle));
        }