摘要: WP7中页面间传值:WP7页面间传值跟普通的web页面间的传值很类似。this.NavigationService.Navigate(new Uri("/Page1.xaml?pagetitle=hello", UriKind.Relative));另一个页面取值:this.PageTitle.Text = NavigationContext.QueryString["pagetitle"].ToString();当然可以直接利用应用程序状态来存值:PhoneApplicationService.Current.State["key" 阅读全文
posted @ 2013-01-16 10:35 hack25 阅读(167) 评论(0) 推荐(0) 编辑
摘要: 打开数据库:SQLiteConnection db = null;private string fileName = "System.DB";if (db == null){ db = new SQLiteConnection(fileName); db.Open(); } 建表:SQLiteCommand cmd = db.CreateCommand("Create table Banji (ClassNumber text,Teacher text,Introduction text)");int i = cmd.ExecuteNonQuery(); 阅读全文
posted @ 2013-01-16 10:33 hack25 阅读(1858) 评论(0) 推荐(0) 编辑