using System;
using System.Windows;

namespace BeWo
{
    public partial class LockedPage
    {
        public LockedPage()
        {
            InitializeComponent();
            Loaded += LockedPage_Loaded;

            TextBoxUsername.Focus();

            LblVersion.Content = BeWoApp.Version;
			lblGesperrt.Content = String.Format("Gesperrt von Benutzer {0} {1}", BeWoApp.LoggedOnUser.Employee.FirstName, BeWoApp.LoggedOnUser.Employee.LastName);
        }

        private void LockedPage_Loaded(object sender, RoutedEventArgs e)
        {
            var top = (ActualHeight - 400) / 3;
            GridLogin.Margin = new Thickness(0, top, 0, 0);
        }
    }
}
