예제 #1
0
        public SpecializedMultimediaManager(User user, ToolsPlugin plugin, TraitCategoryType category, int intraCategoryId) : base(user, string.Format("Multimedia:{0}:{1}", category, intraCategoryId))
        {
            InitializeComponent();
            this.Plugin          = plugin;
            this.TraitCategory   = category;
            this.IntraCategoryID = intraCategoryId;
            var proxy = new BuiltInProxyViewModel(intraCategoryId);

            _content = new MultimediaControl(User, category, proxy)
            {
                Margin = new Thickness(6)
            };
            this.Content = _content;

            Loaded += new RoutedEventHandler(SpecializedMultimediaManager_Loaded);
        }
        public SpecializedMultimediaManager(User user, ToolsPlugin plugin, TraitCategoryType category, int intraCategoryId)
            : base(user, string.Format("Multimedia:{0}:{1}", category, intraCategoryId ))
        {
            InitializeComponent();
            this.Plugin = plugin;
            this.TraitCategory = category;
            this.IntraCategoryID = intraCategoryId;
            var proxy = new BuiltInProxyViewModel(intraCategoryId);
            _content = new MultimediaControl(User, category, proxy) { Margin = new Thickness(6) };
            this.Content = _content;

            Loaded += new RoutedEventHandler(SpecializedMultimediaManager_Loaded);
        }