Esempio n. 1
0
        private async Task OnRemovePremiseClicked(MouseEventArgs e, FuzzyRule rule, FuzzySubexpression premiseExpression)
        {
            string representation = premiseExpression.Value == null ? "" : $"<p class=\"font-weight-light bg-light rounded\">{premiseExpression}</p>";

            if (!await MessageBox.OkCancel(this.Modal, "Pytanie", $"Czy chcesz usunąć wybraną <b>przesłankę</b>?{representation}"))
            {
                return;
            }

            //Model m = ModelProvider.Model;
            rule.RemovePremise(premiseExpression);
        }
Esempio n. 2
0
        private async Task OnRemoveConclusionClicked(MouseEventArgs e, FuzzyRule rule, FuzzySubexpression conclusionExpression)
        {
            string representation = conclusionExpression.Value == null ? "" : $"<p class=\"font-weight-light bg-light rounded\">{conclusionExpression}</p>";

            if (!await MessageBox.OkCancel(this.Modal, "Pytanie", $"Czy chcesz usunąć wybraną <b>konkluzję</b>?{representation}"))
            {
                return;
            }

            rule.RemoveConclusion(conclusionExpression);
        }