Esempio n. 1
0
        private RemoteAnnotateForm(IResource weblink)
        {
            InitializeComponent();
            RestoreSettings();
            Icon     = FavoritesPlugin.LoadIconFromAssembly("categorize_annotate.ico");
            _weblink = weblink;
            InitializeContent();
            IBookmarkService service =
                (IBookmarkService)Core.PluginLoader.GetPluginService(typeof(IBookmarkService));
            IBookmarkProfile profile = service.GetOwnerProfile(_weblink);
            string           error;

            if (profile == null || profile.CanCreate(_weblink, out error))
            {
                _nameBox.ReadOnly    = false;
                _nameBox.BorderStyle = BorderStyle.Fixed3D;
                _nameBox.Font        = new Font(_nameBox.Font, FontStyle.Regular);
            }
        }
Esempio n. 2
0
        public void Execute(IActionContext context)
        {
            string url = context.CurrentUrl;

            FavoritesPlugin.RemoteAnnotateWeblink(url, context.CurrentPageTitle);
        }