08 2011 档案
摘要:用互斥法实现防止程序重复运行,使用内核对象Mutex可以防止同一个进程运行两次。注意:是名称相同的进程,而不是exe,因为exe程序可以改名。在Program.cs中修改首先添加using System.Threading;引用然后原内容改为下面所示static class Program { /// <summary> /// 互斥法防止程序重复运行 private static Mutex myMutex; private static bool requestInitialOwnership = true; private static bool mutexWasCreate
阅读全文
摘要:单击按钮显示图表时,动态生成图表。见自带的示例中的Gallery->Animation->Animation Themes首先引用using Dundas.Charting.WebControl;然后在按钮单击事件中添加 下面两句即可// Set Flash chart image type Chart1.ImageType = ChartImageType.Flash; // Set animation theme 还有另外几种主题可选 Chart1.AnimationTheme = AnimationTheme.GrowingAndFading; // Adjust the d
阅读全文
摘要:见Dundas自带的Chart Features->Axis->Scrolling and zooming示例,首先引用下面语句using Dundas.Charting.WebControl;...若在自己的代码中若是单击按钮后显示图表,则将里面的代码写到按钮事件中private void Page_Load(object sender, System.EventArgs e){ // scrolling and zooming will force keeping of series data between callbacks. this.Chart1.ChartAreas[
阅读全文
摘要:在CustomCommand.js中InfoCommand.prototype.Execute = function() { this.CreateUrl();// this.AddParamToUrl("PixelTolerance", this.pixelTolerance);//原来这句指定了有效范围,默认值为6,选择时很难选中图元 this.AddParamToUrl("PixelTolerance", 18);//此时将范围改为18,选择图元时就比较好选了
阅读全文