-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAdminForm.cs
More file actions
35 lines (27 loc) · 1.02 KB
/
AdminForm.cs
File metadata and controls
35 lines (27 loc) · 1.02 KB
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
using System;
using System.Windows.Forms;
namespace WindowsAdminApp
{
public partial class AdminForm : Form
{
private readonly TabControl tabControl;
public AdminForm()
{
Text = "Admin Panel - Restaurant";
Width = 1200;
Height = 650;
StartPosition = FormStartPosition.CenterScreen;
tabControl = new TabControl { Dock = DockStyle.Fill };
var usersTab = new TabPage("Users");
usersTab.Controls.Add(new UsersPage { Dock = DockStyle.Fill });
var menuTab = new TabPage("Menu");
menuTab.Controls.Add(new MenuPage { Dock = DockStyle.Fill });
var reservationsTab = new TabPage("Reservations");
reservationsTab.Controls.Add(new ReservationsPage { Dock = DockStyle.Fill });
tabControl.TabPages.Add(usersTab);
tabControl.TabPages.Add(menuTab);
tabControl.TabPages.Add(reservationsTab);
Controls.Add(tabControl);
}
}
}