Exemple #1
0
        private void addBeliefButton_Click(object sender, EventArgs e)
        {
            var addBeliefForm = new AddOrEditBeliefForm(_knowledgeBaseVM);

            addBeliefForm.ShowDialog(this);
            _knowledgeBaseVM.UpdateBeliefList();
        }
Exemple #2
0
        private void buttonEdit_Click(object sender, EventArgs e)
        {
            if (dataGridViewBeliefs.SelectedRows.Count == 1)
            {
                var selectedBelief = ((ObjectView <BeliefDTO>)dataGridViewBeliefs.SelectedRows[0].DataBoundItem).Object;

                var addBeliefForm = new AddOrEditBeliefForm(_knowledgeBaseVM, selectedBelief);
                addBeliefForm.ShowDialog();
                _knowledgeBaseVM.UpdateBeliefList();
            }
        }