Ejemplo n.º 1
0
        private void ShowProperties()
        {
            var selected = this.thumbList.SelectedItem as MultimediaLinkViewModel;

            if (selected == null)
            {
                return;
            }
            if (selected.MultimediaID < 0)
            {
                ErrorMessage.Show("You must first apply the changes before editing the details of this item!");
                return;
            }
            var            model          = Service.GetMultimedia(selected.MultimediaID);
            var            detailsControl = new MultimediaDetails(model, User);
            IBioLinkPlugin plugin         = PluginManager.Instance.GetPluginByName("Tools");

            PluginManager.Instance.AddNonDockableContent(plugin, detailsControl, string.Format("Multimedia details [{0}]", model.MultimediaID), SizeToContent.Manual);
        }
Ejemplo n.º 2
0
        private void ShowMultimediaProperties(MultimediaLinkViewModel selected)
        {
            if (selected == null)
            {
                return;
            }
            if (selected.MultimediaID < 0)
            {
                ErrorMessage.Show("You must first apply the changes before editing the details of this item!");
                return;
            }
            var service = new SupportService(User);
            var model   = service.GetMultimedia(selected.MultimediaID);

            if (model != null)
            {
                var detailsControl = new MultimediaDetails(model, User);
                PluginManager.Instance.AddNonDockableContent(Plugin, detailsControl, string.Format("Multimedia details [{0}]", model.MultimediaID), SizeToContent.Manual);
            }
        }
Ejemplo n.º 3
0
 private void ShowProperties()
 {
     var selected = this.thumbList.SelectedItem as MultimediaLinkViewModel;
     if (selected == null) {
         return;
     }
     if (selected.MultimediaID < 0) {
         ErrorMessage.Show("You must first apply the changes before editing the details of this item!");
         return;
     }
     var model = Service.GetMultimedia(selected.MultimediaID);
     var detailsControl = new MultimediaDetails(model, User);
     IBioLinkPlugin plugin = PluginManager.Instance.GetPluginByName("Tools");
     PluginManager.Instance.AddNonDockableContent(plugin, detailsControl, string.Format("Multimedia details [{0}]", model.MultimediaID), SizeToContent.Manual);
 }
Ejemplo n.º 4
0
 private void ShowMultimediaProperties(MultimediaLinkViewModel selected)
 {
     if (selected == null) {
         return;
     }
     if (selected.MultimediaID < 0) {
         ErrorMessage.Show("You must first apply the changes before editing the details of this item!");
         return;
     }
     var service = new SupportService(User);
     var model = service.GetMultimedia(selected.MultimediaID);
     if (model != null) {
         var detailsControl = new MultimediaDetails(model, User);
         PluginManager.Instance.AddNonDockableContent(Plugin, detailsControl, string.Format("Multimedia details [{0}]", model.MultimediaID), SizeToContent.Manual);
     }
 }