Make the change list the default selected tab

If WalkProcedure or Update History is called with a null, reset the contents and return
Fix the section title
This commit is contained in:
Rich
2011-08-02 19:40:35 +00:00
parent 7ec5ca5555
commit d8f76dcbd3
2 changed files with 27 additions and 8 deletions

View File

@@ -98,6 +98,7 @@ namespace Volian.Controls.Library
{
InitializeComponent();
myRTB.FormatFont = null;
tabControl1.SelectedTab = tabItem1;// Start with Change List
}
private void lbChanges_SelectedIndexChanged(object sender, EventArgs e)
@@ -126,7 +127,11 @@ namespace Volian.Controls.Library
myRTB.Clear();
myVFG.Clear();
tvAudits.Nodes.Clear();
if (MyItemInfo == null) return;
if (MyItemInfo == null)
{
this.Cursor = Cursors.Default;
return;
}
MyItemInfo.RefreshItemAnnotations();
#endregion
//if (AnnotationOnly)
@@ -385,6 +390,12 @@ namespace Volian.Controls.Library
DateTime start = DateTime.Now;
Console.WriteLine(start);
lbChanges.Items.Clear();
if (MyProcedureInfo == null)
{
this.Cursor = Cursors.Default;
btnViewSummaryReport.Enabled = btnViewChronologyReport.Enabled = lbChanges.Items.Count > 0;
return;
}
ContentAuditInfoList cail2 = ContentAuditInfoList.GetChronology(MyProcedureInfo.ItemID, MyProcedureInfo.ItemID, false);
Console.WriteLine("WalkProcedure cail2: {0} seconds", TimeSpan.FromTicks(DateTime.Now.Ticks - start.Ticks).TotalSeconds);
_ChronologyAuditList = cail2;