示例#1
0
        private void OnLstSelectionChanged(object sender, EventArgs e)
        {
            MKeyword kw = lstResult.SelectedItem as MKeyword;

            if (kw != null)
            {
                txtSelected.Text = kw.KeyWordDescription;
            }
        }
示例#2
0
        private void FillUpPeople()
        {
            MKeyword kw = (MKeyword)lstResult.SelectedItem;

            if (kw != null)
            {
                lstResult.DataSource = null;
                lstResult.Items.Clear();
                PersonsCollection       collection = new PersonsCollection();
                List <MVwPeopleKeyWord> lst        = collection.GetPersonalCollectionByKW(kw.Idkw);
                FillListPeople(lst);
            }
        }
示例#3
0
        private void DrillUp_Click(object sender, EventArgs e)
        {
            if (lstResult.SelectedValue != null)
            {
                int Id = Convert.ToInt32(lstResult.SelectedValue);
                KeywordsCollection kwcollection = new KeywordsCollection();
                MKeyword           kw           = kwcollection.GetKWbyId(Id);

                if (kw != null)
                {
                    int idref = (int)kw.ReferenceId;
                    kw = kwcollection.GetKWbyId(idref);
                    if (kw != null && kw.ReferenceId != null)
                    {
                        List <MKeyword> lstKW = kwcollection.GetKeywordsCollection((int)kw.ReferenceId);
                        FillListKW(lstKW);
                    }
                }
            }
        }