public Catalog() { InitializeComponent(); manager = MediaManager.getActiveMediaManager(); thumbnailView1.ShowItemRequested += new ShowItemHandler(showItem); previewView1.ShowItem += new ShowItemHandler(taggingView1.TaggingView_ShowItem); previewView1.MediaItems = thumbnailView1; taggingView1.MediaItems = thumbnailView1; }
private void newDatabaseToolStripMenuItem_Click(object sender, EventArgs e) { MediaManager mgr = new MediaManager(); MediaManager.setActiveMediaManager(mgr); openFolderToolStripMenuItem.Enabled = true; }
public static void setActiveMediaManager(MediaManager mgr) { m_defaultManager = mgr; }
private void openDatabaseToolStripMenuItem_Click(object sender, EventArgs e) { OpenFileDialog dialog = new OpenFileDialog(); dialog.Filter = "Media Database Files|*.mdb"; if (dialog.ShowDialog() == DialogResult.OK) { MediaManager mgr = new MediaManager(); MediaManager.setActiveMediaManager(mgr); openFolderToolStripMenuItem.Enabled = true; mgr.loadDBAsync(dialog.FileName, thumbnailView1); } }
public ImageItem(string URI, MediaManager mgr) : base(mgr) { m_URI = URI; m_mgr = mgr; LastModifiedOnDisk = File.GetCreationTime(URI); }