private void Information_Load(object sender, EventArgs e) { ApplicationReq application = new ApplicationReq(SpecializationId, null); DetailListView.Items.AddRange(application.ListById()); return; }
private void ApplyButton_Click(object sender, EventArgs e) { if (SpecializationsView.SelectedItems.Count == 0) { MessageBox.Show("Вы не выбрали поле!"); return; } if (user.ToString() == "User") { MessageBox.Show("Нужно было войти в систему!"); return; } string selectedId = SpecializationsView.SelectedItems[0].SubItems[0].Text; string userId = user.GetID().ToString(); ApplicationReq application = new ApplicationReq(selectedId, userId); application.AddApplication(); }