mirror of
https://github.com/digital-jellyfish/Virtu.git
synced 2024-05-31 15:41:33 +00:00
2167383a00
Upgraded to FxCop 10.0. Dropped Silverlight Toolkit dependency (for now). Modified AudioService to avoid deadlocks by using timeouts. Refactored DebugService and implementations. Modified SilverlightVideoService to handle browser zoom. Split Wpf MainWindow into MainPage child control. --HG-- extra : convert_revision : svn%3Affd33b8c-2492-42e0-bdc5-587b920b7d6d/trunk%4048619
27 lines
613 B
C#
27 lines
613 B
C#
using System;
|
|
using Jellyfish.Library;
|
|
|
|
namespace Jellyfish.Virtu.Services
|
|
{
|
|
public sealed class WpfDebugService : DebugService
|
|
{
|
|
public WpfDebugService(Machine machine, MainPage page) :
|
|
base(machine)
|
|
{
|
|
if (page == null)
|
|
{
|
|
throw new ArgumentNullException("page");
|
|
}
|
|
|
|
_page = page;
|
|
}
|
|
|
|
protected override void OnWriteLine(string message)
|
|
{
|
|
_page.Dispatcher.CheckInvoke(() => _page.WriteLine(message + Environment.NewLine));
|
|
}
|
|
|
|
private MainPage _page;
|
|
}
|
|
}
|