-
Notifications
You must be signed in to change notification settings - Fork 0
/
WindowManager.SplashView.cs
42 lines (36 loc) · 1.75 KB
/
WindowManager.SplashView.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
using System;
using System.Collections.Generic;
using System.Windows.Controls;
using System.Windows.Controls.Primitives;
using System.Windows.Input;
using PAYMAP_BACKEND.Views;
using MahApps.Metro.Controls;
namespace PAYMAP_BACKEND
{
partial class WindowManager
{
private static SplashView _splashView;
private static ToggleButton _splashCreditPAYMAP;
private static ToggleButton _splashCreditMJ;
private static ToggleButton _splashCreditJY;
private static ToggleButton _splashCreditSB;
private static void InitializeSplashWindow()
{
if (_splashView == null) return;
_splashCreditPAYMAP = (ToggleButton) _splashView.FindName("CreditPAYMAP");
_splashCreditMJ = (ToggleButton) _splashView.FindName("CreditMJ");
_splashCreditJY = (ToggleButton) _splashView.FindName("CreditJY");
_splashCreditSB = (ToggleButton) _splashView.FindName("CreditSB");
if (_splashCreditPAYMAP == null || _splashCreditMJ == null || _splashCreditJY == null || _splashCreditSB == null) return;
_splashCreditPAYMAP.Click += (sender, args) => System.Diagnostics.Process.Start("https://github.com/pay-map");
_splashCreditMJ.Click += (sender, args) => System.Diagnostics.Process.Start("https://github.com/MoonJuhan");
_splashCreditJY.Click += (sender, args) => System.Diagnostics.Process.Start("https://github.com/LIMECAKE");
_splashCreditSB.Click += (sender, args) => System.Diagnostics.Process.Start("https://github.com/seongbuming");
}
public static void SetSplashView(SplashView splashView)
{
_splashView = splashView;
InitializeSplashWindow();
}
}
}