public Registration()
        {
            InitializeComponent();

            var engine = new DBEngine();

            cmbboxUni.ItemsSource = engine.GetUni();
            if (Repository.Edit)
            {
                lblHead.Text          = "Изменение данных";
                btnReg.Content        = "Сохранить";
                txtboxLogIn.Text      = Repository.User.Login;
                txtboxLogIn.IsEnabled = false;
                lblName.Foreground    = Brushes.DimGray;
                lblPass.Foreground    = Brushes.DimGray;
                passboxPass.IsEnabled = false;
                txtboxMail.Text       = Repository.User.E_mail;
                txtboxName.Text       = Repository.User.Name;
                if (Repository.User.University != null)
                {
                    cmbboxUni.SelectedItem = Repository.User.University;
                }
            }
        }