Esempio n. 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MetaPropWindow"/> class.
 /// </summary>
 /// <param name="guid">The <see cref="Guid"/> of the Asset.</param>
 /// <param name="fileSystem">The file system.</param>
 public MetaPropWindow(Guid guid, Common.FileSystem.IO fileSystem, Common.CouchDB.Database couchdb)
 {
     InitializeComponent();
     _metaForm    = null;
     _guid        = guid;
     _metaasset   = null;
     _selectedTvi = null;
     _fileSystem  = fileSystem;
     _couchdb     = couchdb;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="MetaPropWindow"/> class.
 /// </summary>
 /// <param name="guid">The <see cref="Guid"/> of the Asset.</param>
 /// <param name="fileSystem">The file system.</param>
 public MetaPropWindow(Guid guid, Common.FileSystem.IO fileSystem, Common.CouchDB.Database couchdb)
 {
     InitializeComponent();
     _metaForm = null;
     _guid = guid;
     _metaasset = null;
     _selectedTvi = null;
     _fileSystem = fileSystem;
     _couchdb = couchdb;
 }
Esempio n. 3
0
        /// <summary>
        /// Handles the Loaded event of the Window control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="System.Windows.RoutedEventArgs"/> instance containing the event data.</param>
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            Thread download;

            _metaasset = new Common.Storage.MetaAsset(_guid, _couchdb);
            if (!_metaasset.LoadFromLocal(null, _metaasset.RelativePath, _fileSystem))
            {
                MessageBox.Show("The resource's meta data could not be loaded.");
                return;
            }
            //LoadTree(_metaasset);

            download = new Thread(new ThreadStart(DownloadFormProperties));
            download.Start();
        }
        /// <summary>
        /// Handles the Loaded event of the Window control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="System.Windows.RoutedEventArgs"/> instance containing the event data.</param>
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            Thread download;

            _metaasset = new Common.Storage.MetaAsset(_guid, _couchdb);
            if (!_metaasset.LoadFromLocal(null, _metaasset.RelativePath, _fileSystem))
            {
                MessageBox.Show("The resource's meta data could not be loaded.");
                return;
            }
            //LoadTree(_metaasset);

            download = new Thread(new ThreadStart(DownloadFormProperties));
            download.Start();
        }