15046. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 8/19/2017 8:20:21 PM Eastern Daylight Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.

15046.1 Files compared

# Location File Last Modified
1 OSCIF_VSE_v1.3.2_SD_5_3_671.zip\ClinSchd\Desktop\ClinSchd.Modules.Ribbon\ViewModels MouseUtilities.cs Thu Jun 22 16:59:36 2017 UTC
2 OSCIF_VSE_v1.3.2_SD_5_3_671.zip\ClinSchd\Desktop\ClinSchd.Modules.Ribbon\ViewModels MouseUtilities.cs Sat Aug 19 14:45:32 2017 UTC

15046.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 3 106
Changed 2 6
Inserted 0 0
Removed 0 0

15046.3 Comparison options

Whitespace
Character case Differences in character case are significant
Line endings Differences in line endings (CR and LF characters) are ignored
CR/LF characters Not shown in the comparison detail

15046.4 Active regular expressions

No regular expressions were active.

15046.5 Comparison detail

  1   using Syst em;
  2   using Syst em.Runtime .InteropSe rvices;
  3   using Syst em.Windows ;
  4   using Syst em.Windows .Media;
  5  
  6   namespace  WPF.JoshSm ith.Contro ls.Utiliti es
  7   {
  8           // / <summary >
  9           // / Provides  access to  the mouse  location  by calling  unmanaged  code.
  10           // / </summar y>
  11           // / <remarks >
  12           // / This cla ss was wri tten by  PII  (Microsof t).   
  13           // / http://b logs.msdn. com/llobo/ archive/20 06/09/06/S crolling-S crollviewe r-on-Mouse -Drag-at-t he-boundar ies.aspx
  14           // / </remark s>
  15           pu blic class  MouseUtil ities
  16           {
  17                    [Str uctLayout(  LayoutKin d.Sequenti al )]
  18                    priv ate struct  Win32Poin t
  19                    {
  20                             public  readonly  int X;
  21                             public  readonly  int Y;
  22                    };
  23  
  24                    [Dll Import( "u ser32.dll"  )]
  25                    priv ate static  extern bo ol GetCurs orPos( ref  Win32Poin t pt );
  26  
  27                    [Dll Import( "u ser32.dll"  )]
  28                    priv ate static  extern bo ol ScreenT oClient( I ntPtr hwnd , ref Win3 2Point pt  );
  29  
  30                    ///  <summary>
  31                    ///  Returns th e mouse cu rsor locat ion.  This  method is  necessary  during 
  32                    ///  a drag-dro p operatio n because  the WPF me chanisms f or retriev ing the
  33                    ///  cursor coo rdinates a re unrelia ble.
  34                    ///  </summary>
  35                    ///  <param nam e="relativ eTo">The V isual to w hich the m ouse coord inates wil l be relat ive.</para m>
  36                    publ ic static  Point GetM ousePositi on( Visual  relativeT o )
  37                    {
  38                             Win32P oint mouse  = new Win 32Point();
  39                             GetCur sorPos( re f mouse );
  40  
  41                              // Using P ointFromSc reen inste ad of  PII 's code (c ommented o ut below)
  42                              // is a bu g fix crea ted by  PII   Read his c omments ab out the fi x
  43                             // her e: http:// www.codepr oject.com/ useritems/ ListViewDr agDropMana ger.asp?ms g=1911611# xx1911611x x
  44                             return  relativeT o.PointFro mScreen( n ew Point(  mouse.X, m ouse.Y ) ) ;
  45  
  46                             #regio n Commente d Out
  47                             //Syst em.Windows .Interop.H wndSource  presentati onSource =
  48                             //     (System.Wi ndows.Inte rop.HwndSo urce)Prese ntationSou rce.FromVi sual( rela tiveTo );
  49                             //Scre enToClient ( presenta tionSource .Handle, r ef mouse ) ;
  50                             //Gene ralTransfo rm transfo rm = relat iveTo.Tran sformToAnc estor( pre sentationS ource.Root Visual );
  51                             //Poin t offset =  transform .Transform ( new Poin t( 0, 0 )  );
  52                             //retu rn new Poi nt( mouse. X - offset .X, mouse. Y - offset .Y );
  53                             #endre gion // Co mmented Ou t
  54                    }
  55           }
  56   }