public IssuesForm(Plugin plugin, ConnectionSettings cs) { InitializeComponent(); issuesListColumnSorter = new IssuesListColumnSorter(); issuesList.ListViewItemSorter = (IComparer)issuesListColumnSorter; this.Text += String.Format(" v{0}", System.Reflection.Assembly.GetExecutingAssembly().GetName().Version); issueHeaders = null; selectedIssue = null; myAccountID = null; userNameMapping = new Dictionary<string, string>(); statusMapping = new Dictionary<string, string>(); this.cs = cs; searchString = String.Empty; plugin.StatusUpdated += new Plugin.StatusUpdatedHandler(plugin_StatusUpdated); InitializeStatusColorMapping(); }
static void Main(string[] args) { String p = "url:http://127.0.0.1/bugs-test/api/soap/mantisconnect.php username:foouser password:foopass project:fooproject"; Plugin plugin = new Plugin(); if (plugin.ValidateParameters(System.IntPtr.Zero, p)) { string[] param = {}; string ret = plugin.GetCommitMessage(System.IntPtr.Zero, p, string.Empty, param, "original message"); System.Console.Out.WriteLine(ret); // System.Console.In.ReadLine(); //ret = plugin.GetCommitMessage(System.IntPtr.Zero, p, string.Empty, param, "original message"); //System.Console.Out.WriteLine(ret); System.Console.In.ReadLine(); } }