Пример #1
0
        public Catalog()
        {
            InitializeComponent();
            manager = MediaManager.getActiveMediaManager();
            thumbnailView1.ShowItemRequested += new ShowItemHandler(showItem);
            previewView1.ShowItem += new ShowItemHandler(taggingView1.TaggingView_ShowItem);
            previewView1.MediaItems = thumbnailView1;
            taggingView1.MediaItems = thumbnailView1;

        }
Пример #2
0
 private void newDatabaseToolStripMenuItem_Click(object sender, EventArgs e)
 {
     MediaManager mgr = new MediaManager();
     MediaManager.setActiveMediaManager(mgr);
     openFolderToolStripMenuItem.Enabled = true;
 }
Пример #3
0
 public static void setActiveMediaManager(MediaManager mgr)
 {
     m_defaultManager = mgr;
 }
Пример #4
0
        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);
            }
        }
Пример #5
0
 public ImageItem(string URI, MediaManager mgr) : base(mgr)
 {
     m_URI = URI;
     m_mgr = mgr;
     LastModifiedOnDisk = File.GetCreationTime(URI);
 }