Switch() public method

Display the virtual desktop.
public Switch ( ) : void
return void
Example #1
0
 private void btnRightDesktop_Click(object sender, EventArgs e)
 {
     if (fPinState)
     {
         VirtualDesktop.UnpinWindow(this.Handle);
     }
     WindowsDesktop.VirtualDesktop current = this.GetCurrentDesktop();
     if (current != null)
     {
         WindowsDesktop.VirtualDesktop vd = current.GetRight();
         if (vd != null)
         {
             vd.Switch();
         }
     }
     else
     {
     }
     if (fPinState)
     {
         VirtualDesktop.PinWindow(this.Handle);
     }
 }
Example #2
0
 public static void SwitchAndMove(this VirtualDesktop virtualDesktop, Window window)
 {
     window.MoveToDesktop(virtualDesktop);
     virtualDesktop.Switch();
 }