-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDataModel.cs
More file actions
23 lines (23 loc) · 1022 Bytes
/
Copy pathDataModel.cs
File metadata and controls
23 lines (23 loc) · 1022 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
namespace StreamDock.Plugin.GoogleAPI
{
internal abstract class DataModel<T1, T2>
{
internal T1 pluginSettings { get; set; }
internal T2 item { get; set; }
internal GoogleAuth googleAuth;
internal string WaitingMessage = "Press Key...";
/// <summary>
/// 정보를 출력하기 전에 표시되는 로딩중 이미지입니다.
/// </summary>
/// <returns></returns>
internal virtual Bitmap GetLoadingKeyImage()
{
TitleParameters tp = new TitleParameters(new FontFamily("Arial"), FontStyle.Bold, 12, Color.White, true, TitleVerticalAlignment.Middle);
Bitmap image = Tools.GenerateGenericKeyImage(out Graphics graphics);
graphics.FillRectangle(new SolidBrush(Color.Yellow), 0, 0, image.Width, image.Height);
graphics.AddTextPath(tp, image.Height, image.Width, "Loading...", Color.Black, 7); //TODO 지역화
graphics.Dispose();
return image;
}
}
}