Here are the examples of the csharp api class CircuitEditorSample.Editor.Close(System.Windows.Forms.Control) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
1 Example
0
1. Example
Project: ATF
Source File: Editor.cs
Source File: Editor.cs
public bool Close(Control control) { var adaptableControl = (AdaptableControl)control; bool closed = true; CircuitDocument circuitDocument = adaptableControl.ContextAs<CircuitDocument>(); if (circuitDocument != null) { closed = m_documentService.Close(circuitDocument); if (closed) Close(circuitDocument); } else { // We don't care if the control was already unregistered. 'closed' should be true. m_circuitControlRegistry.UnregisterControl(control); } return closed; }