/// <summary>
        /// opens the unshelve dialog and calls the unshelve method based on the dialog results
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void unshelve_Click(object sender, RoutedEventArgs e)
        {
            // this is to clear the collection each time you re-open the unshelve window.
            shelveSetCollection.Clear();
            listOfShelveSets.Clear();

            // passes all the shelvesets in all the workspaces
            foreach (Workspace workspace in allWorkSpaces)
            {
                Shelveset[] shelveSets = workspace.VersionControlServer.QueryShelvesets(null, null);
                foreach (Shelveset set in shelveSets)
                {
                    if (!listOfShelveSets.Contains(set.Name))
                    {
                        listOfShelveSets.Add(set.Name);
                        shelveSetCollection.Add(set);
                    }
                }
            }
            unshelvewindow = new UnshelveWindow(shelveSetCollection, activeWorkspace);
            unshelvewindow.ShowDialog();
            if (unshelvewindow.DialogResult.HasValue && unshelvewindow.DialogResult.Value)
            {
                Unshelve();
            }
            else
            {
                //user clicked cancel
            }
        }
 private void unshelve_Click(object sender, RoutedEventArgs e)
 {
     // TODO
     // rather than just passing the shelvesets for the current workspace. we need to pass a bigger object
     // in order to query all shelvesets in all workspaces.
     // this is to clear the collection each time you re-open the unshelve window.
     shelveSetCollection.Clear();
     foreach (Workspace workspace in allWorkSpaces)
     {
         Shelveset[] shelveSets = workspace.VersionControlServer.QueryShelvesets(null, null);
         foreach (Shelveset set in shelveSets)
         {
             shelveSetCollection.Add(set);
         }
     }
     unshelvewindow = new UnshelveWindow(shelveSetCollection, activeWorkspace);
     unshelvewindow.ShowDialog();
     if (unshelvewindow.DialogResult.HasValue && unshelvewindow.DialogResult.Value)
     {
         // Debug
         MessageBox.Show("User clicked OK");
         Unshelve();
     }
     else
         // Debug
         MessageBox.Show("User clicked Cancel");
 }