Пример #1
0
        public MainWindow(User user)
        {
            InitializeComponent();
            this.user = user;

            if (user.IsAdmin){
                btnManagementText.Text = "Management";
            }
            else {
                btnManagementText.Text = "Settings";
                ActionButtons.Width = 267;
            }

            loadCalendar();
        }
Пример #2
0
 public LoginForm(User user)
 {
     InitializeComponent();
     this.user = user;
     tbUsername.Focus();
 }