var sbLeft =
this.el.FindResource(
"sbLeft")
as Storyboard;
var sbSlow =
this.el.FindResource(
"sbSlow")
as Storyboard;
var sbRight =
this.el.FindResource(
"sbRight")
as Storyboard;
var sbLeft1 =
this.el1.FindResource(
"sbLeft1")
as Storyboard;
var sbSlow1 =
this.el1.FindResource(
"sbSlow1")
as Storyboard;
var sbRight1 =
this.el1.FindResource(
"sbRight1")
as Storyboard;
var sbLeft2 =
this.el2.FindResource(
"sbLeft2")
as Storyboard;
var sbSlow2 =
this.el2.FindResource(
"sbSlow2")
as Storyboard;
var sbRight2 =
this.el2.FindResource(
"sbRight2")
as Storyboard;
var sbLeft3 =
this.el3.FindResource(
"sbLeft3")
as Storyboard;
var sbSlow3 =
this.el3.FindResource(
"sbSlow3")
as Storyboard;
var sbRight3 =
this.el3.FindResource(
"sbRight3")
as Storyboard;
//第一个点第一个动画结束后开启缓动,第二个点启动 sbLeft.Completed += (a, b) =>
{
sbSlow.Begin();
el1.Opacity =
1;
sbLeft1.Begin();
};
//第一个点缓动结束,右边动画启动 sbSlow.Completed += (a, b) => sbRight.Begin();
sbRight.Completed += (a, b) => el.Opacity =
0;
//以下类推 sbLeft1.Completed += (a, b) =>
{
sbSlow1.Begin();
el2.Opacity =
1;
sbLeft2.Begin();
};
sbSlow1.Completed += (a, b) => sbRight1.Begin();
sbRight1.Completed += (a, b) => el1.Opacity =
0;
sbLeft2.Completed += (a, b) =>
{
sbSlow2.Begin();
el3.Opacity =
1;
sbLeft3.Begin();
};
sbSlow2.Completed += (a, b) => sbRight2.Begin();
sbRight2.Completed += (a, b) => el2.Opacity =
0;
sbLeft3.Completed += (a, b) => sbSlow3.Begin();
sbSlow3.Completed += (a, b) => sbRight3.Begin();
//最后一个点动画结束,第一个点重启 如此循环 sbRight3.Completed += (a, b) =>
{
el3.Opacity =
0;
el.Opacity =
1;
sbLeft.Begin();
};
}
publicvoid Start()
{
var sb =
this.el.FindResource(
"sbLeft")
as Storyboard;
this.el.Opacity =
1;
if (sb !=
null)
sb.Begin();
}
publicevent PropertyChangedEventHandler PropertyChanged;
privatevoid NotifyPropertyChanged(String propertyName =
"")
{
if (PropertyChanged !=
null)
{
PropertyChanged(
this,
new PropertyChangedEventArgs(propertyName));
}
}
}
范型参数不仅仅可以用于类型的声明上,例如
package com.tom.lang.generics;
import java.util.List;
public class Generics<T> {
private T value;
public Generics(T value) {
this.value =
How to generate a globally unique identifier in Java
http://stackoverflow.com/questions/21536572/generate-unique-id-in-java-to-label-groups-of-related-entries-in-a-log
http://stackoverflow
SHOW [FULL] TABLES [FROM db_name] [LIKE 'pattern']
SHOW TABLES列举了给定数据库中的非TEMPORARY表。您也可以使用mysqlshow db_name命令得到此清单。
本命令也列举数据库中的其它视图。支持FULL修改符,这样SHOW FULL TABLES就可以显示第二个输出列。对于一个表,第二列的值为BASE T
web framework层出不穷,特别是ruby/python,各有10+个,php/java也是一大堆 根据我自己的经验写了一个to do list,按照这个清单,一条一条的学习,事半功倍,很快就能掌握 一共25条,即便很磨蹭,2小时也能搞定一条,25*2=50。只需要50小时就能掌握任意一种web框架
各类web框架大同小异:现代web开发框架的6大元素,把握主线,就不会迷路
建议把本文
hostname // to display the computer name
hostname <changed name> // to change
go to: /etc/sysconfig/network, add/modify HOSTNAME=NEWNAME to change permenately
dont forget to change /etc/hosts
Java代码:
public class test03 {
public static void main(String[] args) {
int[][] a = {{1},{2,3},{4,5,6}};
System.out.println(a[0][1]);
}
}
运行结果:
Exception in thread "mai