public static void Run(IEnumerable<Rect> screens) { if (Instance != null) throw new InvalidOperationException(); Log.Write("---------------------------\n---------------------------\nStarting with " + screens.Count() + " screens"); Instance = new Orchestrator(screens); foreach (var host in Instance.Hosts) { host.Show(); } Instance.SetLocalViews(Instance.AvailableViews[0]); Instance.Multicaster.StartListener(); }
public ViewHost(Orchestrator orchestrator, Rect bounds) { InitializeComponent(); Orchestrator = orchestrator; shouldMaximize = App.PhysicalScreens.Contains(bounds); Left = bounds.X; Top = bounds.Y; Width = bounds.Width; Height = bounds.Height; hideCursorTimer = new DispatcherTimer(TimeSpan.FromSeconds(3), DispatcherPriority.Normal, HideCursor_Tick, Dispatcher.CurrentDispatcher); Cursor = Cursors.None; ForceCursor = true; }
public ToggleOfflineCommand(Orchestrator orchestrator) { this.orchestrator = orchestrator; }