3 |
|
using System.Linq; |
4 |
|
using System.Text; |
5 |
|
using System.Windows.Forms; |
6 |
< |
using EmuXPortal.Logging; |
6 |
> |
using Enterprise.Logging; |
7 |
|
|
8 |
|
namespace EmuXPortal.Api |
9 |
|
{ |
10 |
|
public class DisplayHelper |
11 |
|
{ |
12 |
< |
public DisplayHelper(logger log) : this(log,Screen.PrimaryScreen) { } |
13 |
< |
public DisplayHelper(logger log, string device) : this(log, GetScreenFromString(device)) { } |
14 |
< |
public DisplayHelper(logger log, Screen device) |
12 |
> |
public DisplayHelper() : this(Screen.PrimaryScreen) { } |
13 |
> |
public DisplayHelper(string device) : this(GetScreenFromString(device)) { } |
14 |
> |
public DisplayHelper(Screen device) |
15 |
|
{ |
16 |
< |
log.WriteLine("Using DisplayDevice: {0}", device); |
16 |
> |
gLog.Debug.WriteLine("Using DisplayDevice: {0}", device); |
17 |
|
PhysicalDisplayDevice = device; |
18 |
|
} |
19 |
|
#region GetScreenFromString |