开发者

C# Winforms Timeline control ( from WTL ? )

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 s开发者_高级运维ame is in this link: C# Timeline control

Has a slightly better description of the project and requirements of the timeline control.

Please Help. Thanks! :)


Having a timeline in your project is like having an array of events with execution time. something like this:

public class TimedEvent<T>
{
    public int ExecutionTime { get; set; }
    public EventKinds EventKind { get; set; }
    public EventStatusKinds Status { get; set; }
    public T Data { get; set; }
}

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


if it is made there then obviously it can be done.

Look at Building A TimeLine Control in C#

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜