/// <summary>
        /// This function is the callback used to execute a command when the a menu item is clicked.
        /// See the Initialize method to see how the menu item is associated to this function using
        /// the OleMenuCommandService service and the MenuCommand class.
        /// </summary>
        private void MenuItemCallback(object sender, EventArgs e)
        {
            DTE appobj = (DTE)GetService(typeof(DTE));

            if (appobj.SelectedItems.Count == 0)
            {
                return;
            }


            Project project = appobj.SelectedItems.Item(1).Project;

            if (project.ProjectItems != null)
            {
                _projectItems = new List <ProjectItem>();
                var items = project.ProjectItems.GetEnumerator();
                while (items.MoveNext())
                {
                    var item = (ProjectItem)items.Current;
                    //Recursion to get all ProjectItems
                    _projectItems.Add(GetProjectItemsRecursive(item));
                }
            }

            using (var f = new FindImgsForm())
            {
                f.ProjectItems = _projectItems;
                f.ShowDialog();
            }
        }
		/// <summary>
		/// This function is the callback used to execute a command when the a menu item is clicked.
		/// See the Initialize method to see how the menu item is associated to this function using
		/// the OleMenuCommandService service and the MenuCommand class.
		/// </summary>
		private void MenuItemCallback(object sender, EventArgs e)
		{

			DTE appobj = (DTE) GetService(typeof (DTE));
			if (appobj.SelectedItems.Count == 0) return;


			Project project = appobj.SelectedItems.Item(1).Project;
			if (project.ProjectItems != null)
			{
				_projectItems = new List<ProjectItem>();
				var items = project.ProjectItems.GetEnumerator();
				while (items.MoveNext())
				{
					var item = (ProjectItem) items.Current;
					//Recursion to get all ProjectItems
					_projectItems.Add(GetProjectItemsRecursive(item));
				}
			}

			using (var f = new FindImgsForm())
			{
				f.ProjectItems = _projectItems;
				f.ShowDialog();
			}
		}