public ObjectGridWindow() { InitializeComponent(); rowObjects = new ObservableCollection<SynergyRowObject>(); dataGrid.ItemsSource = rowObjects; MenuController menu = new MenuController(); menu.Configure(mainMenu); menu.AddMenuItem("Phone", "Load Synced FileMatrix", LoadSyncedPhoneFileMatrix); menu.AddMenuItem("RowObjects", "Load Metadata", LoadMetaData); }
public void Configure(MenuController mc, IListMatrix ilm, IGauntletDbAdapter sqliteDb, StoryboardStatusBar statusBar) { this.ilm = ilm; this.sqliteDb = sqliteDb; this.statusBar = statusBar; mc.AddMenuItem("Gauntlet", "Export Active SQLite Lists To FileSystem Sync Folder", ExportActiveSqliteLists); //mc.AddMenuItem("Gauntlet", "Export Active MySQL Lists To FileSystem Sync Folder", ExportActiveMySqlLists); mc.AddMenuItem("Gauntlet", "Active List Management", ShowActiveListManagement); mc.AddMenuItem("Gauntlet", "Import Synced Files", ImportSyncedFiles); mc.AddMenuItem("Gauntlet", "Import Synced Archive Files", ImportSyncedArchiveFiles); mc.AddMenuItem("Gauntlet", "Consume All Imported Files", ConsumeAllImportedFiles); mc.AddMenuItem("Tools", "FileMatrix...", LaunchFileMatrix); mc.AddMenuItem("Tools", "ObjectGrid...", LaunchObjectGrid); }