コード例 #1
0
        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();
        }
コード例 #2
0
 public DefinitionListboxItem(IDefinitionEditorMiddleMan mm, object definition)
 {
     this.Definition = definition;
     this.Content    = mm.GetLabelFor(this.Definition);
 }