private void OptionsDialog_Shown(object sender, EventArgs e)
{
try
{
initialising = true;
DefaultAuthorChanged = false;
BoxDefaultAuthor.Text = "";
BoxDefaultAuthor.ForeColor = Color.FromArgb(0, 0, 0);
DumpHTMLPathChanged = false;
BoxDumpHTMLPath.Text = "";
BoxDumpHTMLPath.ForeColor = Color.FromArgb(0, 0, 0);
if (parameters != null)
{
ParseParameters parsed = new ParseParameters(plugin, this, parameters, false);
if (parsed.DefaultAuthor.Length > 0)
DefaultAuthorChanged = true;
else
BoxDefaultAuthor.ForeColor = Color.FromArgb(192, 192, 192);
if (parsed.DumpHTMLPath.Length > 0)
DumpHTMLPathChanged = true;
else
BoxDumpHTMLPath.ForeColor = Color.FromArgb(192, 192, 192);
parsed.FillInDefaults(this);
BEPath = parsed.BEPath;
BoxDefaultAuthor.Text = parsed.DefaultAuthor;
CheckDumpHTML.Checked = parsed.DumpHTML;
BoxDumpHTMLPath.Text = parsed.DumpHTMLPath;
CheckAddCommitAsComment.Checked = parsed.AddCommitAsComment;
CheckFilterOutClosedIssues.Checked = parsed.FilterOutClosedIssues;
CheckBEXMLCache.Checked = parsed.CacheBEXML;
switch(parsed.ShowCommentCount)
{
case ShowCommentCountType.DontShow:
CheckShowCommentCount.CheckState = CheckState.Unchecked;
break;
case ShowCommentCountType.ShowEasy:
CheckShowCommentCount.CheckState = CheckState.Indeterminate;
break;
case ShowCommentCountType.ShowAll:
CheckShowCommentCount.CheckState = CheckState.Checked;
break;
}
CheckUseBEXML.Checked = parsed.UseBEXML;
}
else
{
this.Text = "About BEurtle";
OptionsGroupBox.Enabled = false;
ButtonReset.Visible = false;
ButtonCancel.Visible = false;
}
}
finally
{
initialising = false;
}
}