public MainWindow(User user) { InitializeComponent(); this.user = user; if (user.IsAdmin){ btnManagementText.Text = "Management"; } else { btnManagementText.Text = "Settings"; ActionButtons.Width = 267; } loadCalendar(); }
public LoginForm(User user) { InitializeComponent(); this.user = user; tbUsername.Focus(); }