2013年6月18日

c# 对数据库的操作

摘要: 1.首先需要引用using System.Data.SqlClient;2.创建连接SqlConnection connection = new SqlConnection();connection.ConnectionString = "Data Source= IP地址; Initial Catalog = 数据库名称; User ID = 数据库用户名; Password=密码";connection.Open(); //开启连接3.执行操作数据库表名称:Test 参数:ID(主键),Name,Age //添加数据private void button1_Click( 阅读全文

posted @ 2013-06-18 13:35 Hai_阔天空 阅读(282) 评论(0) 推荐(0)

Windows Phone 上拉刷新、下拉刷新

摘要: ScrollViewer scrollViewer = new ScrollViewer();// 构造函数public MainPage(){ InitializeComponent(); for (int x = 0; x <= 30; x++) { listBox1.Items.Add(x); }}private double actuableOffset, validStartOffset;private bool mplStarted;protected override void OnManipulationStarted(Manipulati... 阅读全文

posted @ 2013-06-18 09:36 Hai_阔天空 阅读(257) 评论(0) 推荐(0)

Windows Phone 有关独立存储(一)

摘要: private const string foldername = "temp1";private const string filename = foldername + "/address.txt";private const string settingname = "sname"; 1.创建文件夹private void button1_Click(object sender, RoutedEventArgs e) { using (IsolatedStorageFile file = IsolatedStorageFile. 阅读全文

posted @ 2013-06-18 09:21 Hai_阔天空 阅读(225) 评论(0) 推荐(0)

Windows Phone 独立存储查看器

摘要: 1.为了查看我们存放在独立存储的数据,我们需要借助独立存储查看器。2.简单介绍下,IsoStoreSpy下载地址:http://download.csdn.net/download/lhb109743470/5601485 阅读全文

posted @ 2013-06-18 09:07 Hai_阔天空 阅读(170) 评论(0) 推荐(0)

导航