Files
stgsharp/源代码/StgSharp/Control/TimeLine.cs
T

51 lines
1.2 KiB
C#

using StgSharp.Entities;
using StgSharp.Graphics;
using System;
using System.Diagnostics.CodeAnalysis;
using System.Threading;
namespace StgSharp.Controlling
{
public static partial class TimeLine
{
internal static LinkedList<Form> allForm;
private static LinkedList<Form.FrameUpdateTimer> refreshList = new LinkedList<Form.FrameUpdateTimer>();
internal static LinkedListNode<Form.FrameUpdateTimer> signalNode;
private static LinkedList<Form> allFormList = new LinkedList<Form>();
internal static TimelineBlock currentOperation;
private static bool isPaused = false;
static unsafe TimeLine()
{
allForm = new LinkedList<Form>();
}
public static TimelineBlock CurrentOperation
{
get { return currentOperation; }
set
{
if (currentOperation == default ||
currentOperation.isComplete)
{
currentOperation = value;
}
}
}
internal static void UodateAllFrame()
{
foreach (Form item in allForm)
{
item.formThread.Start();
}
}
}
}