-
C#类 阴历阳历农历转换,星座计算,属相计算 含完整源码
C#类 阴历阳历农历转换,星座计算,属相计算 含完整源码
- 2013-12-20下载
- 积分:1
-
操作SQLite数据库的类(个人封装)下载
操作sqllittle数据库的类个人封装
- 2014-10-28下载
- 积分:1
-
斑马打印机方法ZPLHelper
【实例简介】懂得都懂,几乎实现工业上所有需求,实现打印图片、各种码、文字等等
- 2021-10-09 00:30:55下载
- 积分:1
-
asp.net webform文件监控 及图片轮播 例子源码下载
asp.net webform文件监控 及图片轮播 例子源码下载
- 2014-09-18下载
- 积分:1
-
PHP中的 dateline 转换成 c#中的 datetime 方法 UNIX时间转换
在众多的PHP MySQL的应用之中,存储在MySQL中的时间都是一串数字,后经查这个格式的日期叫做:Unix Timestamp;Unix的timestamp是一组数字,表示从1970年1月1日以来的秒数。今天在进行C#应用开发时需要对MySQL中的数据进行操作,写出以下方法供大家参考。主要应用到的类库有:System.TimeZone应用的方法:返回对应于指定协调通用时间 (UTC) 的本地时间。public virtual DateTime ToLocalTime( DateTime time);1、将系统时间转换成UNIX时间戳 DateTime dtStart = TimeZone.CurrentTimeZone.ToLocalTime(new DateTime(1970,1,1)); DateTime dtNow = DateTime.Parse(DateTime.Now.ToString()); TimeSpan toNow = dtNow.Subtract(dtStart); string timeStamp = toNow.Ticks.ToString(); timeStamp = timeStamp.Substring(0,timeStamp.Length - 7); 2、将UNIX时间戳转换成系统时 string timeStamp = "1176686120"; DateTime dtStart = TimeZone.CurrentTimeZone.ToLocalTime(new DateTime(1970,1,1)); long lTime = long.Parse(timeStamp "0000000"); TimeSpan toNow = new TimeSpan(lTime); DateTime dtResult = dtStart.Add(toNow);
- 2013-11-14下载
- 积分:1
-
xml文件转换成csv文件
实现数据格式转换,对xml数据文件进行解析,把数据保存到csv文件里。
- 2014-09-04下载
- 积分:1
-
C# WPF缩放 示例源码
C# WPF缩放 示例源码
- 2017-09-26下载
- 积分:1
-
MVVMDemo windowphone项目例子源码下载
MVVM模式的demo
- 2015-03-24下载
- 积分:1
-
C# 视频聊天源码
C# 视频聊天源码
- 2015-06-01下载
- 积分:1
-
测试链接并显示查询数据
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;//Download by http://down.liehuo.netusing System.Data.SqlClient;namespace Case05_12{ public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { try { //生成连接数据库字符串 string ConStr = "data source=.;database=ljp;uid=sa;pwd=123"; //定义SqlConnection对象实例 SqlConnection con = new SqlConnection(ConStr); //定义Select查询语句 string Sql = "select*from biaoge"; SqlDataAdapter ada = new SqlDataAdapter(Sql, con); DataSet ds = new DataSet(); //定义DataSet对象实例 ada.Fill(ds); //连接数据表格,显示数据 this.dataGridView1.DataSource = ds.Tables[0].DefaultView; } catch { return; } } private void button2_Click(object sender, EventArgs e) { this.Close(); Application.Exit(); } }}
- 2014-10-02下载
- 积分:1