private void dtgList_CellClick(object sender, EventArgs e) { try { int pos = dtgList.CurrentRow.Index; if (radJournal.IsChecked == true) { if (pos < Journal.JournalDT.Rows.Count) { String issn = dtgList.CurrentRow.Cells[0].Value.ToString(); cnvJournal.IsEnabled = true; curJour = new Journal(issn); //curJour = Journal.JournalDS[pos]; //this was if i was using a list } } else { if (pos < Conference.ConferenceDT.Rows.Count) { String isbn = dtgList.CurrentRow.Cells[0].Value.ToString(); curConf = new Conference(isbn); } } setDataSource(); } catch (Exception ex) { } }
private void btnAdd_Click(object sender, RoutedEventArgs e) { if (radJournal.IsChecked == true) { cnvJournal.IsEnabled = true; curJour = new Journal(); setJourDataSource(); txtROJEditor.Text = ""; txtROJEmail.Text = ""; txtROJISSN.Text = ""; txtROJNumber.Text = "1"; txtROJVolume.Text = "1"; txtROJTitle.Text = ""; txtROJPublisher.Text = ""; txtROJOrganisation.Text = ""; } else { curConf = new Conference(); setConfDataSource(); txtROCVenue.Text = ""; txtROCName.Text = ""; txtROCISBN.Text = ""; txtROCCountry.Text = ""; txtROCContactNumer.Text = ""; txtROCContactName.Text = ""; txtROCContactEmail.Text = ""; txtROCCity.Text = ""; } }
public void RemoveConference() { selectedConference = null; }
public void SelectConference() { try { selectedConference = new Conference(conferenceISBN); gotConference = true; } catch (Exception e) { } }
public void SelectConference(String ISBN) { try { selectedConference = new Conference(ISBN); conferenceISBN = ISBN; gotConference = true; } catch (Exception e) { } }
public void SelectConference(Conference con) { selectedConference = con; conferenceISBN = con.ISBN; gotConference = true; }