Beispiel #1
0
        void ObjectChooser_FillingComplete(object sender, MainForm.BoolEventArgs e)
        {
            Diagnostics.Log(String.Format("ObjectChooser_FillingComplete {0}", e.arg));
            filling = false;
            while (fillThread != null && fillThread.IsAlive)
            {
                fillThread.Join(100);
            }
            fillThread = null;



            updateProgressCB(true, "", true, -1, false, 0);



            stopWaitCB(this);

            if (e.arg && resourceType != 0)
            {
                if (objectChooserCache.ContainsKey(resourceType))
                {
                    objectChooserCache[resourceType] = this;
                }
                else
                {
                    objectChooserCache.Add(resourceType, this);
                }
            }

            GetReady();
        }
Beispiel #2
0
        void TGISearch_SearchComplete(object sender, MainForm.BoolEventArgs e)
        {
            Diagnostics.Log(String.Format("TGISearch_SearchComplete {0}", e.arg));
            searching = false;
            while (searchThread != null && searchThread.IsAlive)
            {
                searchThread.Join(100);
            }
            searchThread = null;
            MainForm.SetFT(useCC, useEA, checkInstallDirsCB, this);

            updateProgressCB(true, "", true, -1, false, 0);

            btnSearch.Enabled = btnCancel.Enabled = listView1.Enabled = tlpTGIContextMenu.Enabled = ckbUseCC.Enabled = tlpTGIValues.Enabled = true;
            btnSearch.Text    = "&Search";
            tlpCount.Visible  = true;
            lbCount.Text      = "" + listView1.Items.Count;
        }