mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-09-07 04:20:27 +01:00
Let's just get this merged instead of having a massive PR Original PR: tgstation/tgstation#26534
34 lines
757 B
C#
34 lines
757 B
C#
using System;
|
|
using System.Drawing;
|
|
using System.Windows.Forms;
|
|
|
|
namespace TGControlPanel
|
|
{
|
|
public partial class Main : Form
|
|
{
|
|
public Main()
|
|
{
|
|
InitializeComponent();
|
|
Panels.SelectedIndexChanged += Panels_SelectedIndexChanged;
|
|
Panels.SelectedIndex += Properties.Settings.Default.LastPageIndex;
|
|
InitRepoPage();
|
|
InitBYONDPage();
|
|
InitServerPage();
|
|
LoadChatPage();
|
|
InitConfigPage();
|
|
}
|
|
|
|
private void Main_Resize(object sender, EventArgs e)
|
|
{
|
|
Panels.Location = new Point(10, 10);
|
|
Panels.Width = ClientSize.Width - 20;
|
|
Panels.Height = ClientSize.Height - 20;
|
|
}
|
|
|
|
private void Panels_SelectedIndexChanged(object sender, EventArgs e)
|
|
{
|
|
Properties.Settings.Default.LastPageIndex = Panels.SelectedIndex;
|
|
}
|
|
}
|
|
}
|