private void FindChanges() { // Set wait pointer Cursor.Current = Cursors.WaitCursor; toolStripStatusLabel.Text = Properties.Resources.Showing_Object_Changes; Application.DoEvents(); // Create new list of items for the tree view try { List <SiebelReposChange> changeList = _siebelApp.GetAllChanges(_configChangedFromDateFilter, _configChangedUserNameFilter, UpdateStatusBar); // Populate the Tree View with our results objectListViewAllChanges.Objects = changeList; foreach (OLVColumn column in objectListViewAllChanges.Columns) { column.AutoResize(ColumnHeaderAutoResizeStyle.ColumnContent); } } catch (Exception e2) { ShowError("Siebel Error", "An error occurred while parsing the repository", e2.ToString()); } finally { // Set wait pointer Cursor.Current = Cursors.Default; toolStripStatusLabel.Text = Properties.Resources.Ready; Application.DoEvents(); } }
/// <summary> /// Show the changes made to the repository since the date specified /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void buttonShowChanges_Click(object sender, EventArgs e) { // Set wait pointer Cursor.Current = Cursors.WaitCursor; toolStripStatusLabel.Text = "Showing object changes..."; Application.DoEvents(); // Clear the existing Tree View treeViewAllChanges.Nodes.Clear(); // Create new list of items for the tree view List <ReposTreeItem> treeViewList = new List <ReposTreeItem>(); try { siebelRep.GetAllChanges(siebelApp, settings, treeViewList); // Populate the Tree View with our results populateTreeView(0, null, treeViewList); treeViewAllChanges.ExpandAll(); } catch (Exception e2) { showError("Siebel Error", "An error occurred while parsing the repository", e2.ToString()); } finally { // Set wait pointer Cursor.Current = Cursors.Default; toolStripStatusLabel.Text = "Ready"; Application.DoEvents(); } }