-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathWMain.Variables.cs
74 lines (61 loc) · 1.76 KB
/
WMain.Variables.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
using CustomToolbox.Common.Models;
using DiscordRPC;
using Mpv.NET.Player;
using System.Collections.ObjectModel;
using System.Net.Http;
namespace CustomToolbox;
/// <summary>
/// WMain 的變數
/// </summary>
public partial class WMain
{
/// <summary>
/// 共用的 ToolTip
/// </summary>
public ToolTip TTTips = new();
/// <summary>
/// 共用的 MpvPlayer
/// </summary>
public MpvPlayer? MPPlayer = null;
/// <summary>
/// 共用的 DiscordRpcClient
/// </summary>
public DiscordRpcClient? GlobalDRClient = null;
/// <summary>
/// 共用的 ClipPlayer
/// </summary>
public readonly ClipPlayer CPPlayer = new();
/// <summary>
/// 共用的 CancellationTokenSource
/// </summary>
public CancellationTokenSource? GlobalCTS = null;
/// <summary>
/// 略過 WMain 的 Closing 事件的 Cancel
/// <para>※僅用於讓攔截機制可以正常運作使用。</para>
/// </summary>
public bool IsByPassingWindowClosingEventCancel = false;
/// <summary>
/// 共用的 ObservableCollection<ClipData>
/// </summary>
private readonly ObservableCollection<ClipData> GlobalDataSet = new();
/// <summary>
/// 共用的 IHttpClientFactory
/// </summary>
private static IHttpClientFactory? GlobalHCFactory = null;
/// <summary>
/// 共用的 WPopupPlayer
/// </summary>
private WPopupPlayer? WPPPlayer = null;
/// <summary>
/// 共用的 CancellationToken
/// </summary>
private CancellationToken? GlobalCT = null;
/// <summary>
/// 是否正在初始化中
/// </summary>
private bool IsInitializing = false;
/// <summary>
/// 是否正在等待中
/// </summary>
private bool IsPending = false;
}