Example #1
0
 public MainModel(RomData romData) : base(romData)
 {
     _NSEditorDataModel = new NSEditorModel(romData.NameTable.Names);
     _NSEditorDataModel.PropertyChanged += NSEditorDataModel_PropertyChanged;
     _blockEditorModel = new BlockEditorModel(romData.Tilesets);
     _blockEditorModel.PropertyChanged += BlockEditorModel_PropertyChanged;
     _banks = new ObservableCollectionEx <DisplayTuple <int, IBankModel> >(romData.Banks.Select((p, pi) =>
                                                                                                new DisplayTuple <int, IBankModel>(pi, (p == null) ? (IBankModel) new NullpointerBankModel() : new BankModel(p, this))));
     _phHandler = new PropertyDependencyHandler(this);
 }
Example #2
0
 public NSEditorWindow(NSEditorModel model)
 {
     InitializeComponent();
     DataContext = model;
 }