private void ProcessFirstArgForFile(string arg) { if (File.Exists(arg)) { var tablatureFileProcessor = new TabsterFileProcessor <TablatureFile>(Constants.TablatureFileVersion); var file = tablatureFileProcessor.Load(arg); if (file != null) { _queuedTablatureFile = file; _queuedFileInfo = new FileInfo(arg); } } }
private void PopoutTab(TablatureFile file, FileInfo fileInfo, bool updateRecentFiles = true) { TablatureViewForm.GetInstance(this).LoadTablature(file, fileInfo); if (updateRecentFiles) { _recentFilesManager.Add(new RecentFile(file, fileInfo)); recentlyViewedMenuItem.Add(new RecentMenuItem(fileInfo) { DisplayText = file.ToFriendlyString() }); } var libraryItem = _libraryManager.FindTablatureItemByFile(file); if (libraryItem != null) { libraryItem.Views += 1; libraryItem.LastViewed = DateTime.UtcNow; } LoadTabPreview(); }
public MainForm(TablatureFile tablatureFile, FileInfo fileInfo) : this() { _queuedTablatureFile = tablatureFile; _queuedFileInfo = fileInfo; }
private void PopoutTab(TablatureFile file, FileInfo fileInfo, bool updateRecentFiles = true) { TablatureViewForm.GetInstance(this).LoadTablature(file, fileInfo); if (updateRecentFiles) { _recentFilesManager.Add(new RecentFile(file, fileInfo)); recentlyViewedMenuItem.Add(new RecentMenuItem(fileInfo) {DisplayText = file.ToFriendlyString()}); } var libraryItem = _libraryManager.FindTablatureItemByFile(file); if (libraryItem != null) { libraryItem.Views += 1; libraryItem.LastViewed = DateTime.UtcNow; } LoadTabPreview(); }
public RecentFile(TablatureFile tablatureFile, FileInfo fileInfo) { TablatureFile = tablatureFile; FileInfo = fileInfo; }
private void ProcessFirstArgForFile(string arg) { if (File.Exists(arg)) { var tablatureFileProcessor = new TabsterFileProcessor<TablatureFile>(Constants.TablatureFileVersion); var file = tablatureFileProcessor.Load(arg); if (file != null) { _queuedTablatureFile = file; _queuedFileInfo = new FileInfo(arg); } } }