public virtual void SaveContent(MediaSmartContent content) { }
public virtual void Init(MediaSmartContent content, string blogId) { _blogId = blogId; }
public void Init(MediaSmartContent media, IWin32Window DialogOwner, string blogId) { }
public override void SaveContent(MediaSmartContent content) { ((VideoSmartContent)content).Initialize(_video, _blogId); }
public MediaInsertForm(List <MediaTab> sources, string blogID, int selectedTab, MediaSmartContent content, string title, bool showCopyright, bool isEdit) { // // Required for Windows Form Designer support // InitializeComponent(); _sources = sources; //set strings btnCancel.Text = Res.Get(StringId.CancelButton); if (!isEdit) { buttonInsert.Text = Res.Get(StringId.InsertButtonText); } else { buttonInsert.Text = Res.Get(StringId.OKButtonText); } Text = title; if (!showCopyright || !MarketizationOptions.IsFeatureEnabled(MarketizationOptions.Feature.VideoCopyright)) { copyrightLinkLabel.Visible = false; } else { copyrightLinkLabel.Font = Res.GetFont(FontSize.Small, FontStyle.Regular); copyrightLinkLabel.Text = Res.Get(StringId.Plugin_Video_Copyright_Notice); string link = MarketizationOptions.GetFeatureParameter(MarketizationOptions.Feature.VideoCopyright, "Glink"); if (link == null || link == String.Empty) { copyrightLinkLabel.LinkArea = new LinkArea(0, 0); } else { copyrightLinkLabel.LinkClicked += copyrightLinkLabel_LinkClicked; } } copyrightLinkLabel.LinkColor = SystemColors.HotTrack; // // tabs // tabs = new TabLightweightControl(); tabs.VirtualBounds = new Rectangle(0, 5, 450, 485); tabs.LightweightControlContainerControl = mainTabControl; tabs.DrawSideAndBottomTabPageBorders = false; tabs.ColorizeBorder = false; int i = 0; foreach (MediaTab mediaSource in _sources) { mediaSource.MediaSelected += videoSource_MediaSelected; TabPageControl tab = mediaSource; tab.TabStop = false; Controls.Add(tab); tabs.SetTab(i++, tab); } // initial appearance of editor if (!DesignMode) { Icon = ApplicationEnvironment.ProductIcon; } tabs.VirtualLocation = new Point(0, 5); tabs.VirtualSize = Size; Width = 510; Height = 570; foreach (MediaTab videoSource in _sources) { videoSource.Init(content, blogID); } SetActiveTab(selectedTab); tabs.SelectedTabNumber = selectedTab; tabs.SelectedTabNumberChanged += new EventHandler(tabs_SelectedTabNumberChanged); Closing += new CancelEventHandler(MediaInsertForm_Closing); }
public override void SaveContent(MediaSmartContent content) { IVideo video = (IVideo)_listBoxVideos.SelectedItem; Video contentVideo = video.GetVideo(); ((VideoSmartContent)content).Initialize(contentVideo, _blogId); }
public void SaveContent(MediaSmartContent content) { activeSource.SaveContent(content); }
public MediaInsertForm(List <MediaTab> sources, string blogID, int selectedTab, MediaSmartContent content, string title, bool showCopyright) : this(sources, blogID, selectedTab, content, title, showCopyright, false) { }
public virtual void SaveContent(MediaSmartContent content) { }
public virtual void Init(MediaSmartContent content, string blogId) { _blogId = blogId; }
public MediaInsertForm(List<MediaTab> sources, string blogID, int selectedTab, MediaSmartContent content, string title, bool showCopyright, bool isEdit) { // // Required for Windows Form Designer support // InitializeComponent(); _sources = sources; //set strings btnCancel.Text = Res.Get(StringId.CancelButton); if (!isEdit) buttonInsert.Text = Res.Get(StringId.InsertButtonText); else buttonInsert.Text = Res.Get(StringId.OKButtonText); Text = title; if (!showCopyright || !MarketizationOptions.IsFeatureEnabled(MarketizationOptions.Feature.VideoCopyright)) { copyrightLinkLabel.Visible = false; } else { copyrightLinkLabel.Font = Res.GetFont(FontSize.Small, FontStyle.Regular); copyrightLinkLabel.Text = Res.Get(StringId.Plugin_Video_Copyright_Notice); string link = MarketizationOptions.GetFeatureParameter(MarketizationOptions.Feature.VideoCopyright, "Glink"); if (link == null || link == String.Empty) copyrightLinkLabel.LinkArea = new LinkArea(0, 0); else copyrightLinkLabel.LinkClicked += copyrightLinkLabel_LinkClicked; } copyrightLinkLabel.LinkColor = SystemColors.HotTrack; // // tabs // tabs = new TabLightweightControl(); tabs.VirtualBounds = new Rectangle(0, 5, 450, 485); tabs.LightweightControlContainerControl = mainTabControl; tabs.DrawSideAndBottomTabPageBorders = false; tabs.ColorizeBorder = false; int i = 0; foreach (MediaTab mediaSource in _sources) { mediaSource.MediaSelected += videoSource_MediaSelected; TabPageControl tab = mediaSource; tab.TabStop = false; Controls.Add(tab); tabs.SetTab(i++, tab); } // initial appearance of editor if (!DesignMode) Icon = ApplicationEnvironment.ProductIcon; tabs.VirtualLocation = new Point(0, 5); tabs.VirtualSize = Size; Width = 510; Height = 570; foreach (MediaTab videoSource in _sources) videoSource.Init(content, blogID); SetActiveTab(selectedTab); tabs.SelectedTabNumber = selectedTab; tabs.SelectedTabNumberChanged += new EventHandler(tabs_SelectedTabNumberChanged); Closing += new CancelEventHandler(MediaInsertForm_Closing); }
public MediaInsertForm(List<MediaTab> sources, string blogID, int selectedTab, MediaSmartContent content, string title, bool showCopyright) : this(sources, blogID, selectedTab, content, title, showCopyright, false) { }
public void SaveContent(MediaSmartContent content) { activeSource.SaveContent(content); }
public override void Init(MediaSmartContent content, string blogId) { base.Init(content, blogId); if (MarketizationOptions.IsFeatureEnabled(MarketizationOptions.Feature.YouTubeVideo)) { YouTubeVideoPublisher youtube = new YouTubeVideoPublisher(); youtube.Init(null, this, blogId); //FIXME sideBarControl.SetEntry(youtube, ResourceHelper.LoadAssemblyResourceBitmap("Video.YouTube.Images.Sidebar.png"), youtube.ToString()); } sideBarControl.SelectedIndexChanged += new EventHandler(sideBarControl_SelectedIndexChanged); }
public override void SaveContent(MediaSmartContent content) { // Start to actually publish the video _video.StatusWatcher = _currentPublisher.Publish(txtTitle.Text, txtDescription.Text, txtTags.Text, ((CategoryItem)comboBoxCategory.SelectedItem).CategoryId, ((CategoryItem)comboBoxCategory.SelectedItem).CategoryName, ((SecurityItem)comboBoxPermissions.SelectedItem).SecurityId, ((SecurityItem)comboBoxPermissions.SelectedItem).SecurityName, txtFile.Text); ((VideoSmartContent)content).Initialize(_video, _blogId); }