09 2013 档案

摘要:#region customizeTime if (mediaElement.NaturalDuration.TimeSpan.Seconds < 10) sec = "0" + mediaElement.Position.Seconds.ToString(); else sec = mediaElement.NaturalDuration.TimeSpan.Seconds.ToString(); if (mediaElement... 阅读全文
posted @ 2013-09-29 11:21 iEvent 阅读(613) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2013-09-29 08:22 iEvent 阅读(281) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2013-09-28 11:14 iEvent 阅读(389) 评论(1) 推荐(0)
摘要://使用一个Button,鼠标移入listView显示,移出隐藏 private void button2_MouseEnter(object sender, System.Windows.Input.MouseEventArgs e) { listView1.Visibility = Visibility.Visible; } private void button2_MouseLeave(object sender, System.Windows.Input.MouseEventArgs e) ... 阅读全文
posted @ 2013-09-24 10:41 iEvent 阅读(509) 评论(0) 推荐(0)
摘要:using System;using System.Net;using System.Net.Sockets;using System.Text;using System.IO;using System.Collections;using System.Collections.Generic;using System.Text.RegularExpressions;using System.Globalization;namespace UpdateSys.Common{ /// /// ftp文件上传、下载操作类 /// public class FTPHelpe... 阅读全文
posted @ 2013-09-18 15:41 iEvent 阅读(572) 评论(0) 推荐(0)
摘要:重叠控件点击透过用HitTest属性做修改xaml:IsHitTestVisible="False"。简答的登录模块: private void signIn_Click(object sender, RoutedEventArgs e) { int i = 0; string str = signIn.Content.ToString(); if (textBox1.Text.ToString() == "" && str == "登陆") { S... 阅读全文
posted @ 2013-09-18 15:38 iEvent 阅读(256) 评论(0) 推荐(0)
摘要:void Loaded(object sender, RoutedEventArgs e) { ContextMenu contextMenu = new ContextMenu(); contextMenu.Background = new SolidColorBrush(Colors.Transparent); MenuItem item1 = new MenuItem(); item1.Header = "红色"; item1.Click += new RoutedE... 阅读全文
posted @ 2013-09-17 16:06 iEvent 阅读(452) 评论(0) 推荐(0)
摘要:原文链接:http://blog.csdn.net/ou8811/article/details/5295780整个程序大致可以分为2个部分,第一部分是实现单个文件下载的方法[c-sharp] view plaincopy/// /// 单个文件下载方法 /// /// 保存文件的本地路径 /// 下载文件的FTP路径 public void download(string adss, string ftpadss) { //FileMode常数确定如何打开或创建文件,指定操作系统应创建新文件。 //FileMode.Create如果文件已存在,它将被改写... 阅读全文
posted @ 2013-09-12 09:03 iEvent 阅读(1563) 评论(0) 推荐(0)
摘要:package book.String;import java.io.UnsupportedEncodingException;/** *//*** 转换字符串的编码* @author joe**/public class ChangeCharset ...{/** *//** 7位ASCII字符,也叫作ISO646-US、Unicode字符集的基本拉丁块 */public static final String US_ASCII = "US-ASCII";/** *//** ISO拉丁字母表 No.1,也叫做ISO-LATIN-1 */public static fina 阅读全文
posted @ 2013-09-10 09:19 iEvent 阅读(1392) 评论(0) 推荐(0)
摘要:小技巧把execl.exe转换成dll1.把excel.exe复制到CProgram FilesMicrosoft Visual Studio .NET 2003SDKv1.1Bin夹中,和TlbImp.exe同目录2.在这个文件夹中写一个bat文件---------------------------TlbImp.exe EXCEL.EXEpause---------------------------3.执行bat后,在这个文件夹中就会生成Excel.dll 阅读全文
posted @ 2013-09-09 15:10 iEvent 阅读(1321) 评论(0) 推荐(0)
摘要:using System;using System.Collections.Generic;using System.Data;using System.Data.Odbc;using System.Linq;using System.Reflection;using System.Text;using System.Windows;using System.Windows.Input;using Excel = Microsoft.Office.Interop.Excel;namespace ExcelExportImport{ public class ExcelHelper ... 阅读全文
posted @ 2013-09-09 15:06 iEvent 阅读(1026) 评论(0) 推荐(0)
摘要:private void button1_Click(object sender, RoutedEventArgs e){ Uri uri = new Uri("ftp://192.168.1.14/"); FtpWebRequest ftpRequest = (FtpWebRequest)WebRequest.Create(uri); ftpRequest.Credentials = new NetworkCredential("zz", "123456"); ftpRequest.Method = WebRequestMethod 阅读全文
posted @ 2013-09-09 14:52 iEvent 阅读(951) 评论(0) 推荐(0)
摘要:private void DataGrid_SelectionChanged(object sender, SelectionChangedEventArgs e) { int i = da1.CurrentColumn.DisplayIndex; string str = ((TextBlock)this.da1.Columns[i].GetCellContent(this.da1.SelectedItem)).Text.Trim(); MessageBox.Show("message:选中内容"+str); }//System.Windows.Controls.Data 阅读全文
posted @ 2013-09-09 11:54 iEvent 阅读(978) 评论(0) 推荐(0)