e="
e"
>
按钮<
param>
voidBtnStart_Clickobjectsender,EventArgse){SnowPointsClear)
RandomR=newRandom)
forinti=
i<
i++){SnowPointsAddnewPointRNextScreenPrimaryScreenBoundsWidth),RNextScreenPrimaryScreenBoundsHeight)))
SnowRateAddRNext
))
}ShowDesktop)
thisWindowState=FormWindowStateMinimized
ThreadSleep
)
等待桌面完全显示GraphicsG=GraphicsFromImageBmp)
GCopyFromScreennewPoint
,
),newPointScreenPrimaryScreenBoundsLeft,ScreenPrimaryScreenBoundsTop),newSizeScreenPrimaryScreenBoundsWidth,ScreenPrimaryScreenBoundsHeight))
GDispose)
thisWindowState=FormWindowStateNormal
Int中关村xp系统镜像PtrP=FindWindow"
Progman"
,"
ProgramManager"
)
P=FindWindowExP,IntPtrZero,"
SHELLDLL_DefView"
,null)
DesktopHandle=FindWindowExP,IntPtrZero,"
SysListView
"
,null)
SnowTimerInterval=
SnowTimerEnabled=true
开始下雪}#endregion#regionvoidBtnClose_Clickobjectsender,EventArgse)关闭<
summary>
关闭<
summary>
<
paramname="
sender"
>
窗口本身<
param>
<
paramname="
e"
>
窗口参数<
param>
voidBtnClose_Clickobjectsender,EventArgse){ShowDesktop)
Close)
}#endregion#regionstaticvoidShowDesktop)显示桌面<
summary>
显示桌面<