private static void EnqueueModelCore(OperationListBaseModel Model) { ListItemSource.Insert(0, Model); OpeartionQueue.Enqueue(Model); if (OpenPanelWhenTaskIsCreated) { TabViewContainer.ThisPage.TaskListPanel.IsPaneOpen = true; } if (QueueProcessThread.ThreadState.HasFlag(ThreadState.WaitSleepJoin)) { QueueProcessSleepLocker.Set(); } }
public static void EnqueueRemoteCopyOpeartion(string ToPath, EventHandler OnCompleted = null, EventHandler OnErrorHappended = null, EventHandler OnCancelled = null) { OperationListRemoteModel RemoteCopyModel = new OperationListRemoteModel(ToPath, OnCompleted, OnErrorHappended, OnCancelled); ListItemSource.Insert(0, RemoteCopyModel); OpeartionQueue.Enqueue(RemoteCopyModel); if (OpenPanelWhenTaskIsCreated) { TabViewContainer.ThisPage.TaskListPanel.IsPaneOpen = true; } if (QueueProcessThread.ThreadState.HasFlag(ThreadState.WaitSleepJoin)) { QueueProcessSleepLocker.Set(); } }