• 大小: 447KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-05-17
  • 语言: C#
  • 标签: C#九宫格  

资源简介

C# 实现的九宫格样式控件的源代码. 采用重绘方式.

资源截图

代码片段和文件信息

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

namespace cblang
{
    [Serializable]
    public class FlexStartItem
    {
        private Rectangle m_Rectangle;
        private Image m_Icon;
        private Image m_PressIcon;
        private int m_Index;
        private bool m_Checked;
        private object m_Tag;
        private string m_Name;
        private string m_Text;

        public Rectangle Rectangle
        {
            get { return m_Rectangle; }
            set { m_Rectangle = value; } 
        }
       
        /// 
        /// 选项图片
        /// 

        public Image Icon
        {
            get { return m_Icon; }
            set { m_Icon = value; }
        }
        
        /// 
        /// 选中时的图片
        /// 

        public Image PressIcon
        {
            get { return m_PressIcon; }
            set { m_PressIcon = value; }
        }

        public Image ActiveIcon
        {
            get { return m_Checked ? m_PressIcon : Icon; }
        }

        /// 
        /// 选项编号
        /// 

        public int Index
        {
            get { return m_Index; }
            set { m_Index = value; }
        }
        
        /// 
        /// 是否被选中
        /// 

        public bool Checked
        {
            get { return m_Checked; }
            set { m_Checked = value; }
        }

        public object Tag
        {
            get { return m_Tag; }
            set { m_Tag = value; }
        }
        public string Name
        {
            get { return m_Name; }
            set { m_Name = value; }
        }
        public string Text
        {
            get { return m_Text; }
            set { m_Text = value; }
        }
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       8704  2008-08-09 13:38  FlexStartMenu\FlexStartMenu\bin\Debug\cblang.Flex.dll

     文件      24064  2008-08-09 13:38  FlexStartMenu\FlexStartMenu\bin\Debug\cblang.Flex.pdb

     文件       8192  2008-08-09 13:36  FlexStartMenu\FlexStartMenu\bin\Release\cblang.Flex.dll

     文件      22016  2008-08-09 13:36  FlexStartMenu\FlexStartMenu\bin\Release\cblang.Flex.pdb

     文件       1933  2008-08-09 13:36  FlexStartMenu\FlexStartMenu\FlexStartItem.cs

     文件        926  2008-07-30 09:11  FlexStartMenu\FlexStartMenu\FlexStartItemCollections.cs

     文件       7308  2008-08-09 13:35  FlexStartMenu\FlexStartMenu\FlexStartMenu.cs

     文件       3555  2008-08-09 13:36  FlexStartMenu\FlexStartMenu\FlexStartMenu.csproj

     文件        243  2008-08-02 11:09  FlexStartMenu\FlexStartMenu\FlexStartMenu.csproj.user

     文件       8704  2008-08-09 13:38  FlexStartMenu\FlexStartMenu\obj\Debug\cblang.Flex.dll

     文件      24064  2008-08-09 13:38  FlexStartMenu\FlexStartMenu\obj\Debug\cblang.Flex.pdb

     文件       6144  2008-07-30 10:58  FlexStartMenu\FlexStartMenu\obj\Debug\Refactor\cblang.dll

     文件       5101  2008-08-09 13:41  FlexStartMenu\FlexStartMenu\obj\Debug\ResolveAssemblyReference.cache

     文件        840  2008-08-09 13:41  FlexStartMenu\FlexStartMenu\obj\FlexStartMenu.csproj.FileListAbsolute.txt

     文件       8192  2008-08-09 13:36  FlexStartMenu\FlexStartMenu\obj\Release\cblang.Flex.dll

     文件      22016  2008-08-09 13:36  FlexStartMenu\FlexStartMenu\obj\Release\cblang.Flex.pdb

     文件       1365  2008-07-30 08:56  FlexStartMenu\FlexStartMenu\Properties\AssemblyInfo.cs

     文件       5463  2008-07-30 10:58  FlexStartMenu\FlexStartMenu\ScreenInfo.cs

     文件       1587  2008-07-30 10:16  FlexStartMenu\FlexStartMenu.sln

    ..A..H.     34816  2008-08-09 13:43  FlexStartMenu\FlexStartMenu.suo

     文件       8704  2008-08-09 13:38  FlexStartMenu\TestFlexStart\bin\Debug\cblang.Flex.dll

     文件      24064  2008-08-09 13:38  FlexStartMenu\TestFlexStart\bin\Debug\cblang.Flex.pdb

     文件       2789  2008-08-01 11:21  FlexStartMenu\TestFlexStart\bin\Debug\Image\a0.jpg

     文件       2422  2008-08-01 11:21  FlexStartMenu\TestFlexStart\bin\Debug\Image\a1.jpg

     文件       2134  2008-08-01 11:21  FlexStartMenu\TestFlexStart\bin\Debug\Image\a2.jpg

     文件       2625  2008-08-01 11:21  FlexStartMenu\TestFlexStart\bin\Debug\Image\a3.jpg

     文件       2563  2008-08-01 11:21  FlexStartMenu\TestFlexStart\bin\Debug\Image\a4.jpg

     文件       2701  2008-08-01 11:21  FlexStartMenu\TestFlexStart\bin\Debug\Image\a5.jpg

     文件       2177  2008-08-01 11:18  FlexStartMenu\TestFlexStart\bin\Debug\Image\a6.jpg

     文件       1597  2008-08-01 11:18  FlexStartMenu\TestFlexStart\bin\Debug\Image\a7.jpg

............此处省略120个文件信息

评论

共有 条评论

相关资源