mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/PCK-Studio.git
synced 2026-06-07 21:23:47 +00:00
43 lines
1.3 KiB
C#
43 lines
1.3 KiB
C#
using System;
|
|
using System.Linq;
|
|
using System.Threading.Tasks;
|
|
using System.Windows.Forms;
|
|
using MetroFramework.Forms;
|
|
using PckStudio.Internal;
|
|
using PckStudio.Internal.App;
|
|
using PckStudio.ToolboxItems;
|
|
|
|
namespace PckStudio.Forms
|
|
{
|
|
public partial class ContributorsForm : ThemeForm
|
|
{
|
|
public ContributorsForm()
|
|
{
|
|
InitializeComponent();
|
|
string buildConfig = "";
|
|
|
|
#if BETA
|
|
buildConfig = "Beta";
|
|
#elif DEBUG
|
|
buildConfig = "Debug";
|
|
#elif RELEASE
|
|
buildConfig = "Release";
|
|
#else
|
|
buildConfig = "unknown";
|
|
#endif
|
|
buildLabel.Text = $"Verion: {ApplicationScope.CurrentVersion}\nBuild Config: {buildConfig}\nBranch: {CommitInfo.BranchName}@{CommitInfo.CommitHash}";
|
|
}
|
|
|
|
protected override void OnLoad(EventArgs e)
|
|
{
|
|
base.OnLoad(e);
|
|
foreach (Octokit.RepositoryContributor contributorsName in ApplicationScope.Contributors)
|
|
{
|
|
if (InvokeRequired)
|
|
Invoke(() => contributorsLayoutPanel.Controls.Add(new GithubUserPanel(contributorsName)));
|
|
else
|
|
contributorsLayoutPanel.Controls.Add(new GithubUserPanel(contributorsName));
|
|
}
|
|
}
|
|
}
|
|
} |