06 2011 档案

摘要:•Reference the Data Access block assemblies• Configure Data Access settings• Add the required Namespace• Create an instance of Database• Perform actions using the Database instance(1) includingMicrosoft.Practices.EnterpriseLibrary.Common.dll RequiredMicrosoft.Practices.Unity.dll RequiredMicrosoft.Pr 阅读全文
posted @ 2011-06-16 16:58 天添 阅读(412) 评论(0) 推荐(1) 编辑
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace DelegateAndEvent{ public delegate void nDelegate(); public delegate void sDelegate(string str); public delegate void mulDelegate(string str); class Program { public delegate void eventDelegate(string str); pu 阅读全文
posted @ 2011-06-14 19:03 天添 阅读(273) 评论(0) 推荐(0) 编辑
摘要:Application.lock();if(Application["count"] == null){ Application["count"] = 1;}else{ Application["count"] += 1;}Application.unlock(); 阅读全文
posted @ 2011-06-10 17:44 天添 阅读(110) 评论(0) 推荐(0) 编辑
摘要:在程序中输出日志, 使用 android.util.Log 类. 该类提供了若干静态方法 Log.v(String tag, String msg); Log.d(String tag, String msg); Log.i(String tag, String msg); Log.w(String tag, String msg); Log.e(String tag, String msg); 分别对应 Verbose 冗长的 啰嗦的DebugInfoWarningError tag是一个标识,可以是任意字符串,通常可以使用类名+方法名, 主要是用来在查看日志时提供一个筛选条件. 程序运行后 阅读全文
posted @ 2011-06-02 09:55 天添 阅读(4463) 评论(0) 推荐(0) 编辑
摘要:function analyse(currentOperator,seriesName) { var url= "Analyse.aspx?CurrentOperator="+currentOperator+"&SeriesName="+seriesName; $('#dialog').empty(); var div = $('#dialog').append("<iframe frameborder=0 align=center src="+url+" scrolling=& 阅读全文
posted @ 2011-06-01 17:58 天添 阅读(100) 评论(0) 推荐(0) 编辑
摘要:OpenFileDialog localDialog = new OpenFileDialog(); localDialog.InitialDirectory = "D:\\"; localDialog.FilterIndex = 1; dsEmployee = new DataSet(); if (localDialog.ShowDialog() == DialogResult.OK) { string filePath = localDialog.FileName; string Xls_ConnStr = "Provider=Microsoft.Jet.OL 阅读全文
posted @ 2011-06-01 17:50 天添 阅读(176) 评论(0) 推荐(0) 编辑
摘要:Intent startMain = new Intent(Intent.ACTION_MAIN);startMain.addCategory(Intent.CATEGORY_HOME);startMain.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); startActsivity(startMain);System.exit(EXIT);android.os.Process.killProcess(android.os.Process.myPid()); getWindow().setFlags(WindowManager.LayoutParams.FL. 阅读全文
posted @ 2011-06-01 17:38 天添 阅读(511) 评论(0) 推荐(0) 编辑
摘要:int ColIndex = 0; int RowIndex = 0; int ColCount = dataCha.ColumnCount; int RowCount = dataCha.RowCount; Microsoft.Office.Interop.Excel.Application xlApp = new Microsoft.Office.Interop.Excel.ApplicationClass(); Microsoft.Office.Interop.Excel.Workbook xlBook = xlApp.Workbooks.Add(true); Microsoft.Off 阅读全文
posted @ 2011-06-01 17:36 天添 阅读(1840) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示