第七章 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
1.使用QuerySting在页面间传递值
2.使用Session变量...
分类:
其他好文 时间:
2014-05-01 17:27:48
阅读次数:
331
1
/**************************************************************************************
2 * Function : 约瑟夫问题 3 * Create Date ...
分类:
其他好文 时间:
2014-05-01 12:17:13
阅读次数:
349
Global.asa 常用于对变量进行初始化。
下面的例子展示如何检测访问者首次到达站点的确切时间。时间存储在名为 "started" 的 Session 对象中,并且 "started"
变量的值可被应用程序中的任何 ASP 页面访问: Global.asa 也可用于控制页面访问。 ...
分类:
其他好文 时间:
2014-05-01 12:12:07
阅读次数:
347
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
.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
经常会遇到一个会话中存在sql性能问题,但无法定位哪一个sql导致DB性能问题较高,这是我们需要对这个session进行监控可以通过dbms_monitor包来实现。
首先确定要监控的会话sid及serial#,可以通过v$session视图获得
select sid, serial#, username from v$session where ...
确定session...
分类:
数据库 时间:
2014-04-30 22:23:38
阅读次数:
413
VBA bat create excel files
the datasource is current excel...
分类:
其他好文 时间:
2014-04-29 13:24:22
阅读次数:
259
org.hibernate.HibernateException: No Hibernate Session bound to thread, and configuration does not...
分类:
系统相关 时间:
2014-04-29 13:15:20
阅读次数:
411