示例#1
0
 public void RemoveSubEditor(ViewEditorWidget subEditor)
 {
     if (!_subEditors.Remove(subEditor))
     {
         throw new ArgumentException(@"Editor not added");
     }
     if (null != ViewEditor)
     {
         subEditor.SetViewEditor(null);
     }
 }
示例#2
0
 public void AddSubEditor(ViewEditorWidget subEditor)
 {
     if (_subEditors.Contains(subEditor))
     {
         throw new ArgumentException(@"Editor already added");
     }
     _subEditors.Add(subEditor);
     if (null != ViewEditor)
     {
         subEditor.SetViewEditor(ViewEditor);
     }
 }
示例#3
0
 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);
     }
 }
示例#6
0
 public void AddViewEditorWidget(ViewEditorWidget viewEditorWidget)
 {
     _editorWidgets.Add(viewEditorWidget);
     viewEditorWidget.SetViewEditor(this);
     panelButtons.Controls.Add(viewEditorWidget);
 }