public ShowDialog ( |
||
inheritedClass | ||
Résultat | DialogResult |
private void toolOverrideList_Click(object sender, EventArgs e) { if (parent is SingleInharitanceType) { SingleInharitanceType derivedType = (SingleInharitanceType)parent; using (OverrideDialog dialog = new OverrideDialog()) { if (dialog.ShowDialog(derivedType) == DialogResult.OK) { foreach (Operation operation in dialog.GetSelectedOperations()) { Operation overridden = (derivedType).Override(operation); AddOperationToList(overridden); } OnContentsChanged(EventArgs.Empty); } } } }
private void toolOverrideList_Click(object sender, EventArgs e) { SingleInharitanceType type = shape.CompositeType as SingleInharitanceType; if (type != null) { using (OverrideDialog dialog = new OverrideDialog()) { if (dialog.ShowDialog(type) == DialogResult.OK) { foreach (Operation operation in dialog.GetSelectedOperations()) { type.Override(operation); } } } } }
private void toolOverrideList_Click(object sender, EventArgs e) { if (parent is SingleInharitanceType) { SingleInharitanceType derivedType = (SingleInharitanceType) parent; using (OverrideDialog dialog = new OverrideDialog()) { if (dialog.ShowDialog(derivedType) == DialogResult.OK) { foreach (Operation operation in dialog.GetSelectedOperations()) { Operation overridden = (derivedType).Override(operation); AddOperationToList(overridden); } OnContentsChanged(EventArgs.Empty); } } } }