11 2011 档案

摘要:using System.Diagnostics;namespace CH03{ class Program { static void Main(string[] args) { decimal decimalNumber = 4.2m; double doubleNumber1 = 0.1f * 42f; ... 阅读全文
posted @ 2011-11-29 16:48 jacky_j2ee 阅读(169) 评论(0) 推荐(0)
摘要:namespace CH03{ class Program { static void Main(string[] args) { int n = '3' + '4'; char c = (char)n; System.Console.WriteLine(n); Syst... 阅读全文
posted @ 2011-11-29 16:26 jacky_j2ee 阅读(109) 评论(0) 推荐(0)
摘要:namespace CH02{ class Program { static void Main(string[] args) { string[] languages; languages = new string[] { "1" }; int[] style1 = new int[1]; ... 阅读全文
posted @ 2011-11-29 15:10 jacky_j2ee 阅读(120) 评论(0) 推荐(0)
摘要:namespace CH02{ class Program { static void Main(string[] args) { int[] forSort = new int[] { 1, 2, 3, 9, 8, 7, 6 }; Syst... 阅读全文
posted @ 2011-11-29 15:04 jacky_j2ee 阅读(269) 评论(0) 推荐(0)
摘要:1 <Window x:Class="RoutedEvents.TunneledKeyPress" 2 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 3 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 4 Title="TunneledKeyPress" Height="411" Width="403" 5 PreviewK 阅读全文
posted @ 2011-11-08 16:03 jacky_j2ee 阅读(255) 评论(0) 推荐(0)
摘要:假设StackPanel包装了一些按钮,并且希望一个事件中处理程序中所有这些按钮的单击事件。粗略的方法是将每个按钮的Click事件关联到同一个事件处理程序。但是Click支持事件冒泡,从而提供了一个更好的选择。可以通过更高层次元素的Click事件(如StackPanel面板)来处理所有按钮的单击事件。 1 <Window x:Class="Page111.MainWindow" 2 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 3 xmlns:x="ht 阅读全文
posted @ 2011-11-08 11:32 jacky_j2ee 阅读(212) 评论(0) 推荐(0)