BUG-1741: Improvements of the Confluence plug-in: don't show the page-picker if no pages are currently shown (in IE) and disable the search button while there is nothing to search for.

This commit is contained in:
Robin 2015-01-30 13:24:24 +01:00
commit 026241f160
5 changed files with 24 additions and 10 deletions

View file

@ -20,6 +20,7 @@
*/
using System;
using Confluence;
using System.Collections.Generic;
namespace GreenshotConfluencePlugin {
/// <summary>
@ -29,9 +30,9 @@ namespace GreenshotConfluencePlugin {
private static readonly log4net.ILog LOG = log4net.LogManager.GetLogger(typeof(ConfluencePagePicker));
private ConfluenceUpload confluenceUpload = null;
public ConfluencePagePicker(ConfluenceUpload confluenceUpload) {
public ConfluencePagePicker(ConfluenceUpload confluenceUpload, List<Page> pagesToPick) {
this.confluenceUpload = confluenceUpload;
this.DataContext = ConfluenceUtils.GetCurrentPages();
this.DataContext = pagesToPick;
InitializeComponent();
}