protected virtual void CategoryAngewaehltEvent(WissensCategory category)
 {
     if (this.CategoryAngewaehlt != null)
     {
         this.CategoryAngewaehlt(this, new CategoryAngewaehltEventArgs(category));
     }
 }
Exemplo n.º 2
0
 protected virtual void CategoryAngewaehltEvent(WissensCategory category)
 {
     if (this.CategoryAngewaehlt == null)
     {
         return;
     }
     this.CategoryAngewaehlt((object)this, new ucBotDenkprotokoll.CategoryAngewaehltEventArgs(category));
 }
Exemplo n.º 3
0
 public BotDenkProtokollSchritt(
     string meldung,
     BotDenkProtokollSchritt.SchrittArten art,
     WissensCategory category)
 {
     this._meldung  = meldung;
     this._art      = art;
     this._category = category;
 }
 private void listViewSchritte_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (this.listViewSchritte.SelectedItems.Count == 1)
     {
         ListViewItem listViewItem = this.listViewSchritte.SelectedItems[0];
         if (listViewItem.Tag != null)
         {
             WissensCategory category = (WissensCategory)listViewItem.Tag;
             this.CategoryAngewaehltEvent(category);
         }
     }
 }
        private string BotCategoryBeschreibung(WissensCategory category)
        {
            XmlNode categoryNode = category.CategoryNode;

            if (categoryNode != null)
            {
                AIMLCategory categoryForCategoryNode = this._arbeitsbereich.GetCategoryForCategoryNode(categoryNode);
                if (categoryForCategoryNode != null)
                {
                    return(categoryForCategoryNode.AutoKomplettZusammenfassung);
                }
            }
            return(string.Format("{0}|THAT:{1}|TOPIC:{2}", category.Pattern, category.That, category.ThemaName));
        }
        private void ucBotDenkprotokoll1_CategoryAngewaehlt(object sender, ucBotDenkprotokoll.CategoryAngewaehltEventArgs e)
        {
            WissensCategory category     = e.Category;
            XmlNode         categoryNode = category.CategoryNode;

            if (categoryNode != null)
            {
                AIMLCategory categoryForCategoryNode = this._arbeitsbereich.GetCategoryForCategoryNode(categoryNode);
                if (categoryForCategoryNode != null)
                {
                    this._arbeitsbereich.Fokus.AktAIMLCategory = categoryForCategoryNode;
                }
            }
        }
 public CategoryAngewaehltEventArgs(WissensCategory category)
 {
     this.Category = category;
 }