第七章 F# 库(五)
事件(Microsoft.FSharp.Control.Event)模块
可以把 F# 中的事件看做是函数的集合,能够通过函数调用来触发。其思想是,函数本身注册成事件,即函数的集合,等待事件发生的通知;然后,触发函数发出事件已经发生的通知,引发所有添加到事件中的函数被执行。
我们将讨论事件模块中的下列功能:
创建和处理事件:使用 create...
分类:
其他好文 时间:
2014-07-22 23:03:12
阅读次数:
314
Size widgetSize = Director::getInstance()->getWinSize();
Text* alert = Text::create("Layout", "fonts/Marker Felt.ttf", 30 );
alert->setColor(Color3B(159, 168, 176));
a...
分类:
其他好文 时间:
2014-05-01 21:53:45
阅读次数:
461
When multiple threads share mutable data, each
thread that reads or writes the data must perform synchronization. Without
synchronization, there is no...
分类:
数据库 时间:
2014-05-01 09:14:25
阅读次数:
506
使用Datagridview绑定Access数据库,对于数字类型的数据输入小数后报以下错误:根据错误判断应该是自动检测该栏位应该输入int32类型的数值。我在数据库中定义了保留4位小数,为什么还被转成整型呢?仔细检查,原来Access中的数据类型是需要进一步定义的,选了数字后还要选择是字段大小,以确...
分类:
其他好文 时间:
2014-05-01 08:36:21
阅读次数:
570
Designing Your App’s ProductsAproductis
something you want to sell in your app’s store. You create and configure
products in iTunes Connect, and your ...
分类:
移动开发 时间:
2014-05-01 06:25:43
阅读次数:
655
The variables are guaranteed to be laid out
contiguously, as in C. However, the access blocks may not appear in the object
in the order that you decla...
分类:
数据库 时间:
2014-05-01 04:11:22
阅读次数:
543
WEP:Wired EquIValent
PrIVacy,有线等效加密,WEP算法是一种可选的链路层安全机制,用来提供访问控制,数据加密和安全性检验等。WPA :Wi-Fi Protected
Access,有WPA 和 WPA2两个标准,是一种保护无线电脑网络(Wi-Fi)安全的系统,它是应研究者...
分类:
其他好文 时间:
2014-05-01 03:23:02
阅读次数:
326
.h中添加
int _count;
Layout* layout;
void update(float delta);
layout = Layout::create();
layout->setSize(Size(widgetSize.width, widgetSize.height));...
分类:
其他好文 时间:
2014-04-30 22:28:39
阅读次数:
401
VBA bat create excel files
the datasource is current excel...
分类:
其他好文 时间:
2014-04-29 13:24:22
阅读次数:
259
1 HDFS服务中,默认端口集合:
1. HDFS 端口
Service
Servers
Default Ports Used
Protocol
Description
Need End User Access?
Configuration Parameters
NameNode WebUI
Master Nodes (NameNo...
分类:
其他好文 时间:
2014-04-29 13:24:21
阅读次数:
492