巫妖天下 - LichSky

关于作者:专注于微软平台项目架构、管理和企业解决方案。熟悉各类技术手段、架构设计、开发和项目管理。现主要从事项目开发、架构、管理工作。

C# 切割手机号码集

[CODE_LITE]
private void button1_Click(object sender, EventArgs e)
{
///切割的限制
int qiegenum = 1000;

string t9 = "18955141194,13856964811,18755217613,18655151082,15720510391,15156075785,13637084530,13739237177,13645519343,";
...

Chrome 模拟 手机浏览器

C:\Program Files\Google\Chrome\Application\chrome.exe --user-agent="Mozilla/5.0 (iPhone; U; CPU iPhone OS 3_0 like Mac OS X; en-us) AppleWebKit/528.18 (KHTML, like Gecko) Version/4.0 Mobi

WP7 如何去掉模拟器右侧的一串数字

在 App.xaml.cs

Application.Current.Host.Settings.EnableFrameRateCounter = false;

WP7 BackgroundWorker 后台处理

[CODE_LITE]
using System.Threading;
using System.ComponentModel;

namespace forTestThreadInSomePage
{
public partial class MainPage : PhoneApplicationPage
{
private BackgroundWorker bw = new BackgroundWorker();

public MainPage()
...

WP7 打印输出

System.Diagnostics.Debug.WriteLine("傻逼");
//System.Console.WriteLine("傻逼");

wp7 NavigationService NUllReferenceException

[CODE_LITE]
public MainPage()
{

InitializeComponent();


//我这里有个判断:如果不存在登陆记录,则跳转到Login.xaml
//但在跳转时,会报 NavigationService 为 NUllReferenceException
//NavigationService.Navigate(new Uri("/Login.xaml", UriKind.Relative));
...

wp7 数据存储

[CODE_LITE]
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
...

WP7 从资源中复制文件到手机存储

[CODE_LITE]
//theLogo 文件名,它放在资源里的 Images/ 文件夹内
//project1 是我项目的名称
using (IsolatedStorageFile file = IsolatedStorageFile.GetUserStoreForApplication()) //调出存储空间
{
if (!file.FileExists(theLogo))
...

C# 序列化与反序列号二进制存储

[CODE_LITE]
///
/// 序列化
///

private void toBinary()
{
List myInts = new List { 1, 2, 4, 5, 7 };

BinaryFormatter bf = new BinaryFormatter();

using (FileStream fs = new FileStream("wsw.wsw", FileMode.CreateNew))
...
分页:[«]1[»]

Powered By Z-Blog 1.8 Walle Build 100427

Copyright 巫妖天下(lichsky@163.com) All Rights Reserved.