private void ComponentBuilderForm_Load(object sender, EventArgs e)
        {
            treeViewInventory.Nodes[0].Expand();

            m_fileToInventory[c_defaultInventoryKey] = new Inventory();

            m_bw = new MsBuildWrapper(DefaultInventory);

            if (m_colorIndex >= c_TextColors.Count) m_colorIndex--; // same color as last opened.
            m_fileToColorTable[c_defaultInventoryKey] = c_TextColors[m_colorIndex++];

            m_spoClient = Environment.GetEnvironmentVariable("SPOCLIENT");
        }
        public SolutionWizardForm()
        {
            InitializeComponent();

            m_inv = new Inventory();
            m_helper = new InventoryHelper(m_inv);
            m_bw = new MsBuildWrapper(m_inv);
            m_spoClientPath = "";
            m_worker = new BackgroundWorker();
            m_worker.DoWork += new DoWorkEventHandler(m_worker_DoWork);
            m_worker.RunWorkerCompleted += new RunWorkerCompletedEventHandler(m_worker_RunWorkerCompleted);
        }
        private void allToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            List<string> removeKeys = new List<string>();
            foreach (string file in m_fileToInventory.Keys)
            {
                if (file != c_defaultInventoryKey)
                {
                    removeKeys.Add(file);
                }
            }

            m_fileToInventory[c_defaultInventoryKey] = new Inventory();
            m_bw = new MsBuildWrapper(DefaultInventory);
            foreach (string file in removeKeys)
            {
                RemoveFileMenus(file);
                RemoveInventory(file);
            }
            RefreshTree();           
        }
        public PortingKitWrapper()
        {
            this.m_inv = new InventoryWrapper(new Inventory());
            this.m_helper = new InventoryHelperWrapper(new InventoryHelperWrapper(new InventoryWrapper[] { this.m_inv }));
            this.m_bw = new MsBuildWrapper(this.m_inv.InnerObject);

            this.m_spoClientPath = "";

            this.m_worker = new BackgroundWorker();
            this.m_worker.DoWork += new DoWorkEventHandler(m_worker_DoWork);
            this.m_worker.RunWorkerCompleted += new RunWorkerCompletedEventHandler(m_worker_RunWorkerCompleted);
            this.m_worker.WorkerReportsProgress = true;

            this.m_SearchWorker = new BackgroundWorker();
            this.m_SearchWorker.DoWork += new DoWorkEventHandler(m_SearchWorker_DoWork);
            this.m_SearchWorker.RunWorkerCompleted += new RunWorkerCompletedEventHandler(m_SearchWorker_RunWorkerCompleted);
            this.m_SearchWorker.WorkerReportsProgress = true;
        }