public void RemoveSubEditor(ViewEditorWidget subEditor) { if (!_subEditors.Remove(subEditor)) { throw new ArgumentException(@"Editor not added"); } if (null != ViewEditor) { subEditor.SetViewEditor(null); } }
public void AddSubEditor(ViewEditorWidget subEditor) { if (_subEditors.Contains(subEditor)) { throw new ArgumentException(@"Editor already added"); } _subEditors.Add(subEditor); if (null != ViewEditor) { subEditor.SetViewEditor(ViewEditor); } }
public void AddViewEditorWidget(ViewEditorWidget viewEditorWidget) { _editorWidgets.Add(viewEditorWidget); viewEditorWidget.SetViewEditor(this); panelButtons.Controls.Add(viewEditorWidget); }
public void RemoveSubEditor(ViewEditorWidget subEditor) { if (!_subEditors.Remove(subEditor)) { throw new ArgumentException("Editor not added"); // Not L10N } if (null != ViewEditor) { subEditor.SetViewEditor(null); } }
public void AddSubEditor(ViewEditorWidget subEditor) { if (_subEditors.Contains(subEditor)) { throw new ArgumentException("Editor already added"); // Not L10N } _subEditors.Add(subEditor); if (null != ViewEditor) { subEditor.SetViewEditor(ViewEditor); } }