Esempio n. 1
0
        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)
            {
            }

        }
Esempio n. 2
0
 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 = "";
     }
 }
Esempio n. 3
0
 public void RemoveConference()
 {
     selectedConference = null;
 }
Esempio n. 4
0
        public void SelectConference()
        {
            try
            {
                selectedConference = new Conference(conferenceISBN);
				gotConference = true;
            }
            catch (Exception e)
            {
            }
        }
Esempio n. 5
0
        public void SelectConference(String ISBN)
        {
			try
			{
            selectedConference = new Conference(ISBN);
            conferenceISBN = ISBN;
				gotConference = true;
			}
			catch (Exception e)
			{
				
			}
        }
Esempio n. 6
0
        public void SelectConference(Conference con)
        {
            selectedConference = con;
            conferenceISBN = con.ISBN;
			gotConference = true;
        }