Asked By
jaycepierce
10 points
N/A
Posted on - 12/10/2012
How do I disable automatic switching desktops on my PC with a Windows XP OS during the launch of new applications to avoid the issue of navigating back to previous workspaces from the switched desktop?
Disable the Auto-Switching when launching new programs in Windows XP
Hi Jayce,
This is nothing complicated, all that you need to do is to look into the Skip Mapping content in the program so that you can cancel the transfer of application from one desktop to another.
I have the set of instructions that I want you to follow, it is as below. All I need you to concentrate on is the “Style” in the Skip Mapping section.
public class A
{
public int Foo { get; set; }
public int Bar { get; set; }
}
public class B
{
public int Foo { get; set; }
public int Bar { get; set; }
}
[Test]
public void AutomapperSkipsDefaultValues()
{
//Setup
Mapper.CreateMap<A, B>();
A a=new A();
B b=new B();
a.Foo = 1;
b.Bar = 1;
//Execution
Mapper.Map(a, b);
//Assertion
Assert.AreEqual(a.Foo,b.Foo);
Assert.AreNotEqual(a.Bar,b.Bar);
}
Bell Keny