Exemple #1
0
        private void Grid_Loaded(object sender, RoutedEventArgs e)
        {
            try
            {
                InspectorModel inspector = LogicInspector.GetInfoCurrentInspector();

                FirstName.Text         = inspector.FirstName;
                LastName.Text          = inspector.LastName;
                Patronymic.Text        = inspector.Patronymic;
                Login.Text             = inspector.Login;
                Password.Text          = inspector.Password;
                DateBirth.SelectedDate = inspector.DateBirth;
                PasportSeries.Text     = inspector.PasportSeries;
                PasportNumber.Text     = inspector.PasportNumber;
                Position.ItemsSource   = LogicPosition.GetNameList();
                Position.SelectedIndex = (int)inspector.Position - 1;
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
 private void Grid_Loaded(object sender, RoutedEventArgs e)
 {
     Position.ItemsSource = LogicPosition.GetNameList();
 }