想在Silverlight4中使用DataGrid,并让Header支持多语言,

因此创建了多语言资源,并让Header绑定资源,却无法正常显示,只显示System.Windows.Data.Binding.

是不是现在Header不支持绑定?

posted @ 2010-05-26 20:54 DecleorMX 阅读(391) 评论(3) 编辑

When Build vs.net solution it always show me blue screen with "0X0000008E".

  1. if you open web browerit will pop up http://pop.adv.net..../
  2. Can't download file from microsoft
  3. Can't update my safe360
  4. ...

Scan with my Nortorn, found nothing.

Scan with my OneCare,found nothing.

So,Search from uncle google  go a software named"Malwarebytes' Anti-Malware"

Then Scan,

Found  some Trojan:

  1. Trojan.Agent
  2. Trojan.DNSChanger
  3. Trojan.TDSS

Then remove them , now it seems OK.

 

posted @ 2008-12-26 14:21 DecleorMX 阅读(16) 评论(0) 编辑
Visual Studio Team Data Managed Ref
Generator Class

The abstract base class for data generators.

Namespace: Microsoft.VisualStudio.TeamSystem.Data.DataGenerator
Assembly: Microsoft.VisualStudio.TeamSystem.Data (in microsoft.visualstudio.teamsystem.data.dll)

C#
[CLSCompliantAttribute(true)]
public abstract class Generator : IGenerator, IDisposable

If the standard data generators are insufficient, you can create custom data generators. To create a custom data generator, you must create a class that implements IGenerator or inherits from Generator. You identify the class as a data generator by decorating it with GeneratorAttribute.

You can create a custom designer for a custom data generator, or you can use DefaultGeneratorDesigner.

The base class implementation constructs outputs that are based on public properties that are marked with the OutputAttribute. The inputs are set by using the InputAttribute. Using properties that are marked with attributes provides a simple mechanism for declaring input and output values that are strongly typed.

The standard data generators cannot generate data to satisfy some check constraints. For example, a check constraint requires that a date is in one of two distinct ranges, you cannot use the standard DateTime generator. This example creates a custom data generator that can satisfy such a constraint. The generator accepts two distinct ranges as the input and generates a random date that is in one of the two ranges. For more information, see Walkthrough: Creating a Custom Data Generator for a Check Constraint.

using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.VisualStudio.TeamSystem.Data.DataGenerator;
namespace GeneratorDateRangesCS
{
public class GeneratorDateRangesCS : Generator
{
DateTime mRange1Min;
DateTime mRange1Max;
DateTime mRange2Min;
DateTime mRange2Max;
[Input]
public DateTime Range1Min
{
set {mRange1Min = value;}
}
[Input]
public DateTime Range1Max
{
set {mRange1Max = value;}
}
[Input]
public DateTime Range2Min
{
set {mRange2Min = value;}
}
[Input]
public DateTime Range2Max
{
set {mRange2Max = value;}
}
DateTime mRandomDate;
[Output]
public DateTime RandomDate
{
get {return mRandomDate;}
}
Random mRandom;
Random mRandomRange;
protected override void OnInitialize(GeneratorInit initInfo)
{
mRandom = new Random(this.Seed);       //deterministic
mRandomRange = new Random(this.Seed);  //deterministic
//mRandom = new Random();                //non-deterministic
//mRandomRange = new Random();           //non-deterministic
base.OnInitialize(initInfo);
}
protected override void OnGenerateNextValues()
{
DateTime min;
DateTime max;
//Generate a random date from either range 1 or range 2.
//Randomly select either range 1 or range 2 by randomly 
//generating an odd or an even random number.
//------------------------------------------------------------
if (mRandomRange.Next() % 2 == 0)  //check for odd or even
{
min = mRange1Min;
max = mRange1Max;
}
else
{
min = mRange2Min;
max = mRange2Max;
}
//The formula for creating a random number in a specific range is:
//start of range + (size of range * random number between 0 and 1)
//size of range
TimeSpan range = max - min;
//(size of range * random number between 0 and 1)
TimeSpan randomNumber = new TimeSpan((long)(range.Ticks * mRandom.NextDouble()));
//start of range + (size of range * random number between 0 and 1)
mRandomDate = min + randomNumber;
}
}//end class
}//end namespace
posted @ 2008-12-17 13:53 DecleorMX 阅读(355) 评论(0) 编辑

在我们编辑.aspx页面的时候,比如:User.aspx ,它会自动生成一个User.designer.cs ,

User.designer.cs 文件是如何生成的?靠哪个类生成的?

我查阅了IVsSingleFileGenerator的使用的相关文章,都只能将User.aspx当成一个文本处理,这样根本无法剔取出来页面中的控件列表。

我现在也想自动生成一个文件,也需要获得当前页面中的所有控件列表。应该怎办?

求高手相助。

posted @ 2008-12-11 16:37 DecleorMX 阅读(164) 评论(0) 编辑
1. 多媒体美术动画设计师 若干名
(1) 动画、艺术设计专业’ ,有较好的美工基础及创作能力,工作认真负责,细心有创意,色彩感好;
(2) 熟练使用FLASH、PHOTO、有漫画经历优先考虑,有较强的手绘能力,懂得FLASH简单脚本语言,
(3) 有良好的团队合作精神,重视分工合作;
(4) 愿意投身多媒体行业,优秀的应届毕业生亦可考虑, 
(5) 面试时请带上自己的近期作品或以邮件的形式发给我们
(6) http://www.sosuch.com/ <http://www.sosuch.com/> 电话:82434777-1806
(7)  daogao110@126.com
posted @ 2008-12-03 15:56 DecleorMX 阅读(19) 评论(0) 编辑

公告

昵称:DecleorMX
园龄:3年8个月
粉丝:0
关注:3
<2012年2月>
2930311234
567891011
12131415161718
19202122232425
26272829123
45678910