C# Winforms 时间轴控件(来自 WTL?)
我的一个项目(Winforms/C#)需要一个时间线控件,我真的不知道应该如何从头开始创建一个。我对自己想要的东西有一些直观的想法。类似于下面的链接
http://www.codeproject.com/KB/wtl/ wtltimeline.aspx
我只是想知道是否可以直接在Winforms项目中使用WTL?或者如果没有,从 WTL 代码迁移到 C# 代码以便在 Winforms 中使用是否容易?我无法离开 Winforms,因为我的大部分项目都是在 Winforms 中完成的。
我的另一个问题是在这个链接中: C# 时间线控件
对项目的描述以及时间线控件的要求稍微好一些。
请帮忙。谢谢! :)
I need a timeline control for one of my projects (Winforms/C#)and Im really not sure how i should create one from scratch. I have some visual idea of what i want. Something similar to the link below
http://www.codeproject.com/KB/wtl/wtltimeline.aspx
I just want to know is it possible to use the WTL in a Winforms project directly? or If not, is it easy to migrate from a WTL code to a C# code to use in Winforms. I cant move away from Winforms coz most of my project is complete in Winforms.
My other question regarding the same is in this link:
C# Timeline control
Has a slightly better description of the project and requirements of the timeline control.
Please Help. Thanks! :)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
在项目中拥有一个时间表就像拥有一系列具有执行时间的事件。像这样:
现在您需要创建一个 TimedEvent 数组并向该数组添加事件。
接下来,您应该为当前时间定义一个变量并每秒增加它(如您所愿),然后按照其定义执行事件。
这并不难,不需要使用任何工具...
顺便说一句,我编写了一个使用相同想法的模拟程序。如果您想给我您的电子邮件地址,以便将其发送给您。
祝你好运
Having a timeline in your project is like having an array of events with execution time. something like this:
Now you need to create an array of
TimedEvent
and adding events to the array.Next, you should just define a variable for current time and increase it every second (as you wish) and just execute the event as its defined.
It's not so hard, no need to use any tool...
By the way i wrote a simulation program which is using the same idea. If you want give me you email address to send it to you.
Good luck
如果是在那里制造的,那么显然是可以做到的。
查看用 C# 构建时间轴控件
if it is made there then obviously it can be done.
Look at Building A TimeLine Control in C#