Renamed fntBold to font since it is not necessarily bold.

Two minor corrections
This commit is contained in:
Rich 2012-11-13 20:03:54 +00:00
parent 384a30aa23
commit fbb5023132
2 changed files with 5 additions and 4 deletions

View File

@ -502,10 +502,10 @@ namespace Sync
} }
} }
private static void AddText(RichTextBox rtb, Font fntBold, string txt) private static void AddText(RichTextBox rtb, Font font, string txt)
{ {
rtb.Select(rtb.TextLength, 0); rtb.Select(rtb.TextLength, 0);
rtb.SelectionFont = fntBold; rtb.SelectionFont = font;
rtb.SelectedText = txt; rtb.SelectedText = txt;
} }
private void dgv_MouseDown(object sender, MouseEventArgs e) private void dgv_MouseDown(object sender, MouseEventArgs e)

View File

@ -103,7 +103,8 @@ namespace Volian.Controls.Library
this.Visible = false; this.Visible = false;
if (this.Visible) if (this.Visible)
{ {
WalkProcedure(); if(RefreshRequired)
WalkProcedure();
UpdateHistory(); UpdateHistory();
} }
} }
@ -422,7 +423,7 @@ namespace Volian.Controls.Library
lbChanges.Items.Clear(); lbChanges.Items.Clear();
if (MyProcedureInfo == null) if (MyProcedureInfo == null)
{ {
this.Cursor = Cursors.Default; this.ParentForm.Cursor = Cursors.Default;
btnViewSummaryReport.Enabled = btnViewChronologyReport.Enabled = lbChanges.Items.Count > 0; btnViewSummaryReport.Enabled = btnViewChronologyReport.Enabled = lbChanges.Items.Count > 0;
return; return;
} }