private void FormImplementer_Load(object sender, EventArgs e) { if (id.HasValue) { try { ExecutorViewModel view = service.GetExecutor(id.Value); if (view != null) { textBoxFIO.Text = view.ExecutorFIO; } } catch (Exception ex) { MessageBox.Show(ex.Message, "Ошибка", MessageBoxButtons.OK, MessageBoxIcon.Error); } } }