Example #1
0
 protected virtual void SyncCategoryAngewaehltEvent(AIMLCategory category)
 {
     if (this.SyncCategoryAngewaehlt != null)
     {
         this.SyncCategoryAngewaehlt(this, new SyncCategoryAngewaehltEventArgs(category));
     }
 }
Example #2
0
 private void Fokus_AktAIMLCategoryChanged(object sender, EventArgs <AIMLCategory> e)
 {
     if (this._arbeitsbereich != null && this._arbeitsbereich.AnzahlKategorien < 5000)
     {
         this._aktSyncCategory = e.Value;
         this.SyncCategoryAngewaehltEvent(this._aktSyncCategory);
     }
 }
Example #3
0
 protected virtual void SyncCategoryAngewaehltEvent(AIMLCategory category)
 {
     if (this.SyncCategoryAngewaehlt == null)
     {
         return;
     }
     this.SyncCategoryAngewaehlt((object)this, new ucWorkflowToolbar.SyncCategoryAngewaehltEventArgs(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;
                }
            }
        }
 private void dataGridViewCategorien_SelectionChanged(object sender, EventArgs e)
 {
     if (this._categories != null && this._categories.Count != 0 && this.dataGridViewCategorien.SelectedRows.Count == 1)
     {
         int index = this.dataGridViewCategorien.SelectedRows[0].Index;
         if (index <= this._categories.Count - 1)
         {
             if (this._categories[index] != null)
             {
                 AIMLCategory aIMLCategory = this._categories[index];
                 aIMLCategory.AIMLTopic.AIMLDatei.Arbeitsbereich.Fokus.AktAIMLCategory = aIMLCategory;
             }
             Application.DoEvents();
         }
     }
 }
Example #7
0
        private void InitializeComponent()
        {
            ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(ucWorkflowScrollbox));

            this.ucWorkflow = new ucWorkflow();
            base.SuspendLayout();
            this.ucWorkflow.BackColor = Color.FromArgb(255, 192, 192);
            this.ucWorkflow.Category  = null;
            componentResourceManager.ApplyResources(this.ucWorkflow, "ucWorkflow");
            this.ucWorkflow.Name = "ucWorkflow";
            componentResourceManager.ApplyResources(this, "$this");
            base.AutoScaleMode = AutoScaleMode.Font;
            this.BackColor     = Color.FromArgb(192, 255, 192);
            base.Controls.Add(this.ucWorkflow);
            base.Name  = "ucWorkflowScrollbox";
            base.Load += this.ucWorkflowScrollbox_Load;
            base.ResumeLayout(false);
        }
Example #8
0
        private void InitializeComponent()
        {
            ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(ucWorkflowScrollbox));

            this.ucWorkflow = new ucWorkflow();
            this.SuspendLayout();
            this.ucWorkflow.BackColor = Color.FromArgb((int)byte.MaxValue, 192, 192);
            this.ucWorkflow.Category  = (AIMLCategory)null;
            componentResourceManager.ApplyResources((object)this.ucWorkflow, "ucWorkflow");
            this.ucWorkflow.Name = "ucWorkflow";
            componentResourceManager.ApplyResources((object)this, "$this");
            this.AutoScaleMode = AutoScaleMode.Font;
            this.BackColor     = Color.FromArgb(192, (int)byte.MaxValue, 192);
            this.Controls.Add((Control)this.ucWorkflow);
            this.Name  = nameof(ucWorkflowScrollbox);
            this.Load += new EventHandler(this.ucWorkflowScrollbox_Load);
            this.ResumeLayout(false);
        }
 private void ZeilenInhalteRefreshen()
 {
     if (!this._zeilenWerdenGeradeAufgefuellt && this._categories != null && this._categories.Count != 0)
     {
         int firstDisplayedScrollingRowIndex = this.dataGridViewCategorien.FirstDisplayedScrollingRowIndex;
         int val = firstDisplayedScrollingRowIndex + this.dataGridViewCategorien.DisplayedRowCount(true);
         firstDisplayedScrollingRowIndex = Math.Max(0, firstDisplayedScrollingRowIndex);
         val = Math.Min(val, this._categories.Count);
         for (int i = firstDisplayedScrollingRowIndex; i < val; i++)
         {
             AIMLCategory aIMLCategory = this._categories[i];
             this.dataGridViewCategorien.Rows[i].Cells[0].Value = aIMLCategory.AIMLTopic.AIMLDatei.Titel;
             this.dataGridViewCategorien.Rows[i].Cells[1].Value = aIMLCategory.AIMLTopic.Name;
             this.dataGridViewCategorien.Rows[i].Cells[2].Value = aIMLCategory.AutoKomplettZusammenfassung;
         }
         Application.DoEvents();
     }
 }
Example #10
0
        private void dataGridViewCategorien_SelectionChanged(object sender, EventArgs e)
        {
            if (this._categories == null || this._categories.Count == 0 || this.dataGridViewCategorien.SelectedRows.Count != 1)
            {
                return;
            }
            int index = this.dataGridViewCategorien.SelectedRows[0].Index;

            if (index > this._categories.Count - 1)
            {
                return;
            }
            if (this._categories[index] != null)
            {
                AIMLCategory category = this._categories[index];
                category.AIMLTopic.AIMLDatei.Arbeitsbereich.Fokus.AktAIMLCategory = category;
            }
            Application.DoEvents();
        }
Example #11
0
        private void ZeilenInhalteRefreshen()
        {
            if (this._zeilenWerdenGeradeAufgefuellt || (this._categories == null || this._categories.Count == 0))
            {
                return;
            }
            int scrollingRowIndex = this.dataGridViewCategorien.FirstDisplayedScrollingRowIndex;
            int val1 = scrollingRowIndex + this.dataGridViewCategorien.DisplayedRowCount(true);
            int num1 = Math.Max(0, scrollingRowIndex);
            int num2 = Math.Min(val1, this._categories.Count);

            for (int index = num1; index < num2; ++index)
            {
                AIMLCategory category = this._categories[index];
                this.dataGridViewCategorien.Rows[index].Cells[0].Value = (object)category.AIMLTopic.AIMLDatei.Titel;
                this.dataGridViewCategorien.Rows[index].Cells[1].Value = (object)category.AIMLTopic.Name;
                this.dataGridViewCategorien.Rows[index].Cells[2].Value = (object)category.AutoKomplettZusammenfassung;
            }
            Application.DoEvents();
        }
Example #12
0
 public void RefreshAnzeige()
 {
     if (this._categoryPainter != null)
     {
         AIMLCategory category = this._categoryPainter.Category;
         if (category != null)
         {
             XmlNode contentNode = this._categoryPainter.Category.ContentNode;
             if (contentNode != null)
             {
                 string outerXml = contentNode.OuterXml;
                 if (outerXml != this._lastPaintContent)
                 {
                     this._analyser.FlushBuffer();
                     base.Invalidate();
                 }
             }
         }
     }
 }
Example #13
0
 private void toolStripButtonSyncronisieren_Click(object sender, EventArgs e)
 {
     this._aktSyncCategory = this._arbeitsbereich.Fokus.AktAIMLCategory;
     this.SyncCategoryAngewaehltEvent(this._aktSyncCategory);
 }
Example #14
0
 public SyncCategoryAngewaehltEventArgs(AIMLCategory category)
 {
     this.Category = category;
 }