Inheritance: IBugTraqProvider2
Ejemplo n.º 1
0
 public OptionsDialog(BEurtlePlugin plugin, string parameters)
 {
     this.plugin = plugin;
     this.parameters = parameters;
     InitializeComponent();
     BoxDefaultAuthor.AutoCompleteCustomSource = plugin.authors;
     CheckUseBEXML.Enabled = false;
 }
Ejemplo n.º 2
0
 public IssuesForm(BEurtlePlugin plugin, string commonRoot, string baseComment)
 {
     this.plugin = plugin;
     this.BEroot=commonRoot;
     this.baseComment = baseComment;
     /*if (!BEroot.StartsWith("http://") && !BEroot.EndsWith(".xml"))
     {
         while (!Directory.Exists(BEroot + Path.DirectorySeparatorChar + ".be"))
         {
             BEroot = Path.GetDirectoryName(BEroot);
             if (BEroot == null) throw new Exception("Couldn't find a BE issues repository in this directory hierarchy");
         }
     }*/
     InitializeComponent();
     this.KeyPreview = true;
     BERepoLocation.Text = BEroot;
     IssuesList.Sort(IssuesList.Columns[1], ListSortDirection.Ascending);
     if (plugin.parameters.FilterOutClosedIssues)
     {
         if (!status_filters.Contains("closed")) status_filters.Add("closed");
         if (!status_filters.Contains("fixed")) status_filters.Add("fixed");
         if (!status_filters.Contains("wontfix")) status_filters.Add("wontfix");
     }
 }
Ejemplo n.º 3
0
 public ParseParameters(BEurtlePlugin plugin, IWin32Window hwnd, string parameters, bool fillindefaults=true)
 {
     this.plugin = plugin;
     string[] pars = parameters.Split('&');
     foreach (var par in pars)
     {
         if (par.StartsWith("BEPath="))
             BEPath = par.Substring(7);
         else if (par.StartsWith("DefaultAuthor="))
             DefaultAuthor = par.Substring(14);
         else if (par.StartsWith("DumpHTML="))
             DumpHTML = bool.Parse(par.Substring(9));
         else if (par.StartsWith("DumpHTMLPath="))
             DumpHTMLPath = par.Substring(13);
         else if (par.StartsWith("AddCommitAsComment="))
             AddCommitAsComment = bool.Parse(par.Substring(19));
         else if (par.StartsWith("FilterOutClosedIssues="))
             FilterOutClosedIssues = bool.Parse(par.Substring(22));
         else if (par.StartsWith("UseBEXML="))
             UseBEXML = bool.Parse(par.Substring(9));
         else if(par.StartsWith("ShowCommentCount="))
             switch (par.Substring(17))
             {
                 case "DontShow":
                     ShowCommentCount = ShowCommentCountType.DontShow;
                     break;
                 case "ShowEasy":
                     ShowCommentCount = ShowCommentCountType.ShowEasy;
                     break;
                 case "ShowAll":
                     ShowCommentCount = ShowCommentCountType.ShowAll;
                     break;
             }
         else if (par.StartsWith("CacheBEXML="))
             CacheBEXML = bool.Parse(par.Substring(11));
     }
     if (fillindefaults) FillInDefaults(hwnd);
 }
Ejemplo n.º 4
0
        public IssueDetail(BEurtlePlugin plugin, Guid uuid, AutoCompleteStringCollection creators, AutoCompleteStringCollection reporters, AutoCompleteStringCollection assigneds, AutoCompleteStringCollection authors)
        {
            this.plugin = plugin;
            this.uuid = uuid;
            InitializeComponent();
            CommentBody.DocumentText = "<!DOCTYPE html><html><body></body></html>";

            BoxCreator.AutoCompleteCustomSource = creators;
            BoxReporter.AutoCompleteCustomSource = reporters;
            BoxAssigned.AutoCompleteCustomSource = assigneds;
            CommentAuthor.AutoCompleteCustomSource = authors;

            defaultcreator = plugin.parameters.DefaultAuthor;
            BoxReporter.Text = defaultcreator;
            if (uuid == Guid.Empty)
            {
                BoxCreator.Text = defaultcreator;
            }
        }