public MainDefinitionEditor(IDefinitionEditorMiddleMan mm) { InitializeComponent(); this._mm = mm; this.lstDefinitions.MouseDoubleClick += this.LstDefinitions_MouseDoubleClick; this.Closing += (sender, e) => mm.SaveAll(); this._mm.LoadAll(); this.RefreshDefinitionList(); }
public DefinitionListboxItem(IDefinitionEditorMiddleMan mm, object definition) { this.Definition = definition; this.Content = mm.GetLabelFor(this.Definition); }