-
c#队列使用示例
【实例简介】:一个.NET自带的队列框架。按照先进选出的规则进行数据入队及出队处理。特别适合于改进某些扫表进行数据处理的场合,
- 2021-08-07 00:30:58下载
- 积分:1
-
北大青鸟课件-使用ASP.NET构建动态网站(附实例源码)
北大青鸟课件-使用ASP.NET构建动态网站(附实例源码)
- 2015-11-09下载
- 积分:1
-
XML学习
public Turntable() { InitializeComponent(); int angle = 5029; for (int i = 0; i < 16; i ) { angle = 22; _ListAngle.Add(angle); } } /// /// 保存八个角度 /// List _ListAngle = new List(); /// /// 产生随机数 /// Random _Random = new Random(); int _Index = 0; int _OldAngle = 0; private void btnStartTurntable_Click(object sender, RoutedEventArgs e) { btnStartTurntable.IsEnabled = false; _Index = _Random.Next(0, 16); //_Index = 2; Storyboard sb = (Storyboard)this.FindResource("zhuandong"); sb.Completed -= this.sb_Completed; sb.Completed = new EventHandler(sb_Completed); ((SplineDoubleKeyFrame)((DoubleAnimationUsingKeyFrames)sb.Children[0]).KeyFrames[0]).Value = _OldAngle; ((SplineDoubleKeyFrame)((DoubleAnimationUsingKeyFrames)sb.Children[0]).KeyFrames[3]).Value = _ListAngle[_Index]; //((SplineDoubleKeyFrame)((DoubleAnimationUsingKeyFrames)sb.Children[0]).KeyFrames[3]).Value = 5218; sb.Begin(); } void sb_Completed(object sender, EventArgs e) { DispatcherTimer dt = new DispatcherTimer(); dt.Interval = TimeSpan.FromSeconds(0.3); dt.Tick = delegate { dt.Stop(); _OldAngle = (_ListAngle[_Index] % 360); btnStartTurntable.IsEnabled = true; AwardProcess(GetAward(_ListAngle[_Index])); }; dt.Start(); } public delegate void AwardDelegate(Award award); /// /// 返回转到的奖项信息 /// public event AwardDelegate AwardProcess; private Award GetAward(int angle) {
- 2014-08-01下载
- 积分:1
-
模仿QQ来信息闪动
模仿QQ来信息闪动
- 2015-01-22下载
- 积分:1
-
C# 电子白板(2套源码)
C# 电子白板(2套源码)
- 2020-05-18下载
- 积分:1
-
WPF 信息管理系统界面(不含业务逻辑)
注意:该实例不含任何业务逻辑,无点击事件效果,仅仅是wpf图片效果展示
- 2015-05-01下载
- 积分:1
-
C#操作ini文件实例
C#操作ini文件
- 2013-01-20下载
- 积分:1
-
动画效果浮动窗体实例
private void StopRectTimer_Tick(object sender, EventArgs e) { //如果鼠标在窗体上,则根据停靠位置显示整个窗体 if (this.Bounds.Contains(Cursor.Position)) { switch (this.StopDock) { case AnchorStyles.Top: this.Location = new Point(this.Location.X, 0); break; case AnchorStyles.Bottom: this.Location = new Point(this.Location.X, Screen.PrimaryScreen.Bounds.Height - this.Height); break; case AnchorStyles.Left: this.Location = new Point(0, this.Location.Y); break; case AnchorStyles.Right: this.Location = new Point(Screen.PrimaryScreen.Bounds.Width - this.Width, this.Location.Y); break; } } else //如果鼠标离开窗体,则根据停靠位置隐藏窗体,但须留出部分窗体边缘以便鼠标选中窗体 { switch (this.StopDock) { case AnchorStyles.Top: this.Location = new Point(this.Location.X, (this.Height - 3) * (-1)); break; case AnchorStyles.Bottom: this.Location = new Point(this.Location.X, Screen.PrimaryScreen.Bounds.Height - 5); break; case AnchorStyles.Left: this.Location = new Point((-1) * (this.Width - 3), this.Location.Y); break; case AnchorStyles.Right: this.Location = new Point(Screen.PrimaryScreen.Bounds.Width - 2, this.Location.Y); break; } } }
- 2015-06-10下载
- 积分:1
-
wpf登录界面例子源码
wpf登录界面例子源码
- 2015-08-12下载
- 积分:1
-
C#车牌识别源代码
下图是 车牌的 识别结果 1、把MYsource放在G盘2、运行环境是Net framework2.03、必须得有E盘以上G盘E盘可以到程序里面改,很好找到的此实例从别处获得,如果侵犯了您的权益,请联系作者上传者删除
- 2018-12-01下载
- 积分:1