• 大小: 10.78MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-10-09
  • 语言: 其他
  • 标签: 满屏雪花  

资源简介

满屏雪花,可设置雪花、背景音乐、图片

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace MyLove
{
    public class CheckMenuItemClass
    {
        public static void CheckToolStripMenuItemState(object sender int index)
        {
            if (sender is ToolStripMenuItem)
            {
                ToolStripMenuItem OwnerItem = (ToolStripMenuItem)sender;
                foreach (ToolStripMenuItem SubItem in OwnerItem.DropDownItems)
                {
                    SubItem.Checked = (OwnerItem.DropDownItems.IndexOf(SubItem) == index);
                }
            }
        }

        public static void AdjustToolStripMenuItem(object sender ref int SpeedIndex Timer Speed)
        {
            if (sender is ToolStripMenuItem)
            {
                ToolStripMenuItem SubItem = (ToolStripMenuItem)sender;
                ToolStripMenuItem OwnerItem = (ToolStripMenuItem)SubItem.OwnerItem;
                int index = OwnerItem.DropDownItems.IndexOf(SubItem);
                SpeedIndex = index;
                switch (SpeedIndex)
                {
                    case 0:
                        Speed.Interval = 50;
                        break;
                    case 1:
                        Speed.Interval = 30;
                        break;
                    case 2:
                        Speed.Interval = 10;
                        break;
                }
            }
        }

        public static void AdjustToolStripMenuItem(object sender ref int NumIndex ref Double Number)
        {
            if (sender is ToolStripMenuItem)
            {
                ToolStripMenuItem SubItem = (ToolStripMenuItem)sender;
                ToolStripMenuItem OwnerItem = (ToolStripMenuItem)SubItem.OwnerItem;
                int index = OwnerItem.DropDownItems.IndexOf(SubItem);
                NumIndex = index;
                switch (NumIndex)
                {
                    case 0:
                        Number = 0.70;
                        break;
                    case 1:
                        Number = 0.40;
                        break;
                    case 2:
                        Number = 0.10;
                        break;
                }
            }
        }
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2015-10-29 00:05  MyLove\
     文件        9662  2012-06-06 08:29  MyLove\48snow.ico
     文件        2367  2012-06-07 11:49  MyLove\CheckMenuItemClass.cs
     文件       23251  2012-06-07 11:49  MyLove\Form1.Designer.cs
     文件       19642  2012-06-07 11:51  MyLove\Form1.cs
     文件       15353  2012-06-07 11:49  MyLove\Form1.resx
     文件        6451  2013-03-07 20:12  MyLove\MyLove.csproj
     文件         528  2013-03-07 20:12  MyLove\MyLove.csproj.user
     文件         487  2012-05-31 22:53  MyLove\Program.cs
     目录           0  2015-10-29 00:05  MyLove\Properties\
     文件        1368  2012-05-31 22:53  MyLove\Properties\AssemblyInfo.cs
     文件        2850  2013-03-07 20:12  MyLove\Properties\Resources.Designer.cs
     文件        5612  2012-05-31 22:53  MyLove\Properties\Resources.resx
     文件        1104  2013-03-07 20:12  MyLove\Properties\Settings.Designer.cs
     文件         249  2012-05-31 22:53  MyLove\Properties\Settings.settings
     文件         425  2012-06-05 02:11  MyLove\SnowFlake.cs
     文件        1219  2012-06-06 08:09  MyLove\app.manifest
     目录           0  2015-10-29 00:04  MyLove\bin\
     目录           0  2015-10-29 00:04  MyLove\bin\Debug\
     文件       61440  2012-06-06 08:42  MyLove\bin\Debug\AxInterop.WMPLib.dll
     文件      339968  2012-06-06 08:42  MyLove\bin\Debug\Interop.WMPLib.dll
     文件       37888  2012-06-06 08:42  MyLove\bin\Debug\MyLove.exe
     文件       34304  2012-06-06 08:42  MyLove\bin\Debug\MyLove.pdb
     文件       14328  2012-06-06 08:08  MyLove\bin\Debug\MyLove.vshost.exe
     文件         490  2009-06-11 05:14  MyLove\bin\Debug\MyLove.vshost.exe.manifest
     文件     4221189  2012-06-01 00:58  MyLove\bin\Debug\music1.mp3
     目录           0  2015-10-29 00:04  MyLove\bin\Debug\picture\
     文件        2097  2012-06-05 09:24  MyLove\bin\Debug\picture\Daffodil_副本.png
     文件        1728  2012-06-05 09:24  MyLove\bin\Debug\picture\Scilla_副本.png
     文件        2304  2012-06-05 09:24  MyLove\bin\Debug\picture\Strawberry_副本.png
     文件        3060  2012-06-05 09:24  MyLove\bin\Debug\picture\s_副本.png
............此处省略60个文件信息

评论

共有 条评论

相关资源