资源简介
通过Dsoframer控件自动播放PPT文件的源码,另外包含win8风格窗口源代码,自动循环播放文件夹内所有图片文件功能的源码,以及通过欧姆龙Fins_Tcp/IP协议访问读写OMRON PLC(可编程控器)地址数据的源码,非常有参考价值的源码!
代码片段和文件信息
/**
* Metroframework - Modern UI for WinForms
*
* The MIT License (MIT)
* Copyright (c) 2011 Sven Walter http://github.com/viperneo
*
* Permission is hereby granted free of charge to any person obtaining a copy of
* this software and associated documentation files (the “Software“) to deal in the
* Software without restriction including without limitation the rights to use copy
* modify merge publish distribute sublicense and/or sell copies of the Software
* and to permit persons to whom the Software is furnished to do so subject to the
* following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED “AS IS“ WITHOUT WARRANTY OF ANY KIND EXPRESS OR IMPLIED
* INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY FITNESS FOR A
* PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
* HOLDERS BE LIABLE FOR ANY CLAIM DAMAGES OR OTHER LIABILITY WHETHER IN AN ACTION OF
* CONTRACT TORT OR OTHERWISE ARISING FROM OUT OF OR IN CONNECTION WITH THE SOFTWARE
* OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
using System.Drawing;
using System.Collections.Generic;
namespace Metroframework
{
public sealed class MetroBrushes
{
private static Dictionary metroBrushes = new Dictionary();
private static SolidBrush GetSaveBrush(string key Color color)
{
lock (metroBrushes)
{
if (!metroBrushes.ContainsKey(key))
metroBrushes.Add(key new SolidBrush(color));
return metroBrushes[key].Clone() as SolidBrush;
}
}
public static SolidBrush Black
{
get
{
return GetSaveBrush(“Black“ MetroColors.Black);
}
}
public static SolidBrush White
{
get
{
return GetSaveBrush(“White“ MetroColors.White);
}
}
public static SolidBrush Silver
{
get
{
return GetSaveBrush(“Silver“ MetroColors.Silver);
}
}
public static SolidBrush Blue
{
get
{
return GetSaveBrush(“Blue“ MetroColors.Blue);
}
}
public static SolidBrush Green
{
get
{
return GetSaveBrush(“Green“ MetroColors.Green);
}
}
public static SolidBrush Lime
{
get
{
return GetSaveBrush(“Lime“ MetroColors.Lime);
}
}
public static SolidBrush Teal
{
get
{
return GetSaveBrush(“Teal“ MetroColors.Teal);
}
}
public static Sol
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2015-10-24 09:03 MetroForWinForm_OMRON\
文件 483 2014-06-05 00:19 MetroForWinForm_OMRON\.gitattributes
文件 1970 2014-06-05 00:19 MetroForWinForm_OMRON\.gitignore
文件 3782 2014-06-05 00:19 MetroForWinForm_OMRON\CHANGELOG.md
文件 1156 2014-06-05 00:19 MetroForWinForm_OMRON\LICENSE.md
目录 0 2015-10-24 09:03 MetroForWinForm_OMRON\Metrofr
目录 0 2015-10-24 09:03 MetroForWinForm_OMRON\Metrofr
文件 6614 2014-06-05 00:19 MetroForWinForm_OMRON\Metrofr
文件 3599 2014-06-05 00:19 MetroForWinForm_OMRON\Metrofr
文件 16558 2014-06-05 00:19 MetroForWinForm_OMRON\Metrofr
文件 2328 2014-06-05 00:19 MetroForWinForm_OMRON\Metrofr
文件 2308 2014-06-05 00:19 MetroForWinForm_OMRON\Metrofr
文件 1544 2014-06-05 00:19 MetroForWinForm_OMRON\Metrofr
目录 0 2015-10-24 09:03 MetroForWinForm_OMRON\Metrofr
文件 4207 2014-06-05 00:19 MetroForWinForm_OMRON\Metrofr
文件 7113 2014-06-05 00:19 MetroForWinForm_OMRON\Metrofr
文件 6447 2014-06-05 00:19 MetroForWinForm_OMRON\Metrofr
目录 0 2015-10-24 09:03 MetroForWinForm_OMRON\Metrofr
文件 14771 2014-06-05 00:19 MetroForWinForm_OMRON\Metrofr
文件 15659 2014-06-05 00:19 MetroForWinForm_OMRON\Metrofr
文件 18358 2014-06-05 00:19 MetroForWinForm_OMRON\Metrofr
文件 6587 2014-06-24 14:17 MetroForWinForm_OMRON\Metrofr
文件 19479 2014-06-05 00:19 MetroForWinForm_OMRON\Metrofr
文件 12688 2014-06-05 00:19 MetroForWinForm_OMRON\Metrofr
文件 14298 2014-06-05 00:19 MetroForWinForm_OMRON\Metrofr
文件 14962 2014-06-05 00:19 MetroForWinForm_OMRON\Metrofr
文件 14712 2014-06-05 00:19 MetroForWinForm_OMRON\Metrofr
文件 15736 2014-06-05 00:19 MetroForWinForm_OMRON\Metrofr
文件 36281 2014-06-05 00:19 MetroForWinForm_OMRON\Metrofr
文件 22067 2014-06-05 00:19 MetroForWinForm_OMRON\Metrofr
文件 14455 2014-06-05 00:19 MetroForWinForm_OMRON\Metrofr
............此处省略354个文件信息
评论
共有 条评论