Ejemplo n.º 1
0
        private void addConditionButton_Click(object sender, EventArgs e)
        {
            Condition_Editor editor = new Condition_Editor();

            editor.ShowDialog();
            updateConditionList();
        }
Ejemplo n.º 2
0
        void ConditionTreeViewNodeMouseDoubleClick(object sender, TreeNodeMouseClickEventArgs e)
        {
            if (e.Node.Text.Substring(0, 6) != "Name: ")
            {
                return;
            }
            int              conditionId     = Convert.ToInt32(e.Node.Nodes[0].Text.Substring(4));
            Condition        conditionToEdit = Core.conditions[conditionId];
            Condition_Editor editor          = new Condition_Editor(conditionToEdit);

            editor.ShowDialog();
        }