示例#1
0
        private void miAddPrimaryObjective_Click(object sender, EventArgs e)
        {
            ObjectivesType c = (ObjectivesType)tvManifest.SelectedNode.Tag;

            Debug.Assert(c.primaryObjective == null, "Primary objective already exists");

            c.primaryObjective = new ObjectivesTypePrimaryObjective();

            Forms.PropertyEditor.Show(c.primaryObjective);
            tvManifest.SelectedNode.Expand();
        }
示例#2
0
        private void miAddObjective_Click(object sender, EventArgs e)
        {
            ObjectivesType c = (ObjectivesType)tvManifest.SelectedNode.Tag;

            ObjectivesTypeObjective o = new ObjectivesTypeObjective();

            c.objective.Add(o);

            Forms.PropertyEditor.Show(o);
            tvManifest.SelectedNode.Expand();
        }