Example #1
0
 private void Journalbutton_Click(object sender, EventArgs e)
 {
     if (art.Journal != null)
     {
         FormDoJournal fj = new FormDoJournal(db, (int)art.Journal);
         fj.Show();
     }
 }
Example #2
0
        private void CB_journals_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (CB_journals.CheckedItems.Count != 1)
            {
                return;
            }

            string s = CB_journals.CheckedItems[0].ToString();
            //SelectedItem.ToString();
            //memo(s);
            int aid = util.getid(s);

            //memo("aid = " + aid);
            CB_journals.SetItemCheckState(CB_journals.CheckedIndices[0], CheckState.Unchecked);
            CB_journals.ClearSelected();


            FormDoJournal fd = new FormDoJournal(db, aid);

            fd.Show();
        }