예제 #1
0
 public Search(MainForm.CheckInstallDirsCB checkInstallDirsCB, MainForm.updateProgressCallback updateProgressCB, MainForm.listViewAddCallBack listViewAddCB)
     : this()
 {
     this.checkInstallDirsCB = checkInstallDirsCB;
     this.updateProgressCB   = updateProgressCB;
     this.listViewAddCB      = listViewAddCB;
 }
예제 #2
0
파일: Search.cs 프로젝트: dd-dk/sims3tools
 public Search(MainForm.CheckInstallDirsCB checkInstallDirsCB, MainForm.updateProgressCallback updateProgressCB, MainForm.listViewAddCallBack listViewAddCB)
     : this()
 {
     this.checkInstallDirsCB = checkInstallDirsCB;
     this.updateProgressCB = updateProgressCB;
     this.listViewAddCB = listViewAddCB;
 }
예제 #3
0
        public static ObjectChooser CreateObjectChooser(MainForm.DoWaitCallback doWaitCB, MainForm.StopWaitCallback stopWaitCB,
                                                        MainForm.updateProgressCallback updateProgressCB, MainForm.listViewAddCallBack listViewAddCB, CatalogType resourceType,
                                                        EventHandler <MainForm.SelectedIndexChangedEventArgs> selectedIndexChangedHandler,
                                                        EventHandler <MainForm.ItemActivateEventArgs> itemActivateHandler)
        {
            ObjectChooser res;

            if (!objectChooserCache.ContainsKey(resourceType))
            {
                res = new ObjectChooser(doWaitCB, stopWaitCB, updateProgressCB, listViewAddCB, resourceType);
                res.SelectedIndexChanged += selectedIndexChangedHandler;
                res.ItemActivate         += itemActivateHandler;
                return(res);
            }

            res = objectChooserCache[resourceType];
            res.SelectedIndexChanged = null;
            res.SelectedItem         = null;
            res.listView1.SelectedItems.Clear();
            res.SelectedIndexChanged += selectedIndexChangedHandler;

            res.ItemActivate  = null;
            res.ItemActivate += itemActivateHandler;

            return(res);
        }
예제 #4
0
 private ObjectChooser(MainForm.DoWaitCallback doWaitCB, MainForm.StopWaitCallback stopWaitCB,
     MainForm.updateProgressCallback updateProgressCB, MainForm.listViewAddCallBack listViewAddCB, CatalogType resourceType)
     : this()
 {
     this.doWaitCB = doWaitCB;
     this.stopWaitCB = stopWaitCB;
     this.updateProgressCB = updateProgressCB;
     this.listViewAddCB = listViewAddCB;
     this.resourceType = resourceType;
 }
예제 #5
0
 private ObjectChooser(MainForm.DoWaitCallback doWaitCB, MainForm.StopWaitCallback stopWaitCB,
                       MainForm.updateProgressCallback updateProgressCB, MainForm.listViewAddCallBack listViewAddCB, CatalogType resourceType)
     : this()
 {
     this.doWaitCB         = doWaitCB;
     this.stopWaitCB       = stopWaitCB;
     this.updateProgressCB = updateProgressCB;
     this.listViewAddCB    = listViewAddCB;
     this.resourceType     = resourceType;
 }
예제 #6
0
 public TGISearchThread(Control control, Criteria criteria,
                        AddCallBack addCB, MainForm.updateProgressCallback updateProgressCB, stopSearchCallback stopSearchCB, searchCompleteCallback searchCompleteCB)
 {
     this.control          = control;
     this.criteria         = criteria;
     this.addCB            = addCB;
     this.updateProgressCB = updateProgressCB;
     this.stopSearchCB     = stopSearchCB;
     this.searchCompleteCB = searchCompleteCB;
 }
예제 #7
0
 public FillThread(Control objectChooser, CatalogType resourceType
                   , AddCallBack createListViewItemCB
                   , MainForm.updateProgressCallback updateProgressCB
                   , stopFillingCallback stopFillingCB
                   , fillingCompleteCallback fillingCompleteCB
                   )
 {
     this.control           = objectChooser;
     this.resourceType      = resourceType;
     this.addCB             = createListViewItemCB;
     this.updateProgressCB  = updateProgressCB;
     this.stopFillingCB     = stopFillingCB;
     this.fillingCompleteCB = fillingCompleteCB;
 }
예제 #8
0
 public SaveList(MainForm mainForm, SpecificResource selectedItem, Dictionary<string, IResourceKey> rkList,
     PathPackageTuple target, bool compress, bool addSTBLs, bool padSTBLs, bool zeroSTBLIID, bool excludeCommonResources,
         MainForm.updateProgressCallback updateProgressCB, StopSavingCallback stopSavingCB, SaveListComplete savingCompleteCB)
 {
     this.mainForm = mainForm;
     this.selectedItem = selectedItem;
     this.rkList = rkList;
     this.target = target;
     this.compress = compress;
     this.addSTBLs = addSTBLs;
     this.padSTBLs = padSTBLs;
     this.zeroSTBLIID = zeroSTBLIID;
     this.excludeCommonResources = excludeCommonResources;
     this.updateProgressCB = updateProgressCB;
     this.stopSavingCB = stopSavingCB;
     this.savingCompleteCB = savingCompleteCB;
 }
예제 #9
0
 public SaveList(MainForm mainForm, SpecificResource selectedItem, Dictionary <string, IResourceKey> rkList,
                 PathPackageTuple target, bool compress, bool addSTBLs, bool padSTBLs, bool zeroSTBLIID, bool excludeCommonResources,
                 MainForm.updateProgressCallback updateProgressCB, StopSavingCallback stopSavingCB, SaveListComplete savingCompleteCB)
 {
     this.mainForm               = mainForm;
     this.selectedItem           = selectedItem;
     this.rkList                 = rkList;
     this.target                 = target;
     this.compress               = compress;
     this.addSTBLs               = addSTBLs;
     this.padSTBLs               = padSTBLs;
     this.zeroSTBLIID            = zeroSTBLIID;
     this.excludeCommonResources = excludeCommonResources;
     this.updateProgressCB       = updateProgressCB;
     this.stopSavingCB           = stopSavingCB;
     this.savingCompleteCB       = savingCompleteCB;
 }
예제 #10
0
 public SearchThread(Search searchPane,
                     AddCallBack addCB, MainForm.updateProgressCallback updateProgressCB, stopSearchCallback stopSearchCB, searchCompleteCallback searchCompleteCB)
 {
     this.control               = searchPane;
     this.criteria.text         = searchPane.tbText.Text.Trim().ToLowerInvariant();
     this.criteria.resourceName = searchPane.ckbResourceName.Checked;
     this.criteria.objectName   = searchPane.ckbObjectName.Checked;
     this.criteria.objectDesc   = searchPane.ckbObjectDesc.Checked;
     this.criteria.catalogName  = searchPane.ckbCatalogName.Checked;
     this.criteria.catalogDesc  = searchPane.ckbCatalogDesc.Checked;
     this.criteria.allLanguages = !searchPane.rb1English.Checked;
     this.criteria.allLanguages = searchPane.rb1All.Checked;
     this.criteria.catalogType  = searchPane.SelectedCatalogType;
     this.addCB            = addCB;
     this.updateProgressCB = updateProgressCB;
     this.stopSearchCB     = stopSearchCB;
     this.searchCompleteCB = searchCompleteCB;
 }
예제 #11
0
파일: Search.cs 프로젝트: dd-dk/sims3tools
 public SearchThread(Search searchPane,
     AddCallBack addCB, MainForm.updateProgressCallback updateProgressCB, stopSearchCallback stopSearchCB, searchCompleteCallback searchCompleteCB)
 {
     this.control = searchPane;
     this.criteria.text = searchPane.tbText.Text.Trim().ToLowerInvariant();
     this.criteria.resourceName = searchPane.ckbResourceName.Checked;
     this.criteria.objectName = searchPane.ckbObjectName.Checked;
     this.criteria.objectDesc = searchPane.ckbObjectDesc.Checked;
     this.criteria.catalogName = searchPane.ckbCatalogName.Checked;
     this.criteria.catalogDesc = searchPane.ckbCatalogDesc.Checked;
     this.criteria.allLanguages = !searchPane.rb1English.Checked;
     this.criteria.allLanguages = searchPane.rb1All.Checked;
     this.criteria.catalogType = searchPane.SelectedCatalogType;
     this.addCB = addCB;
     this.updateProgressCB = updateProgressCB;
     this.stopSearchCB = stopSearchCB;
     this.searchCompleteCB = searchCompleteCB;
 }
예제 #12
0
 public FillThread(Control objectChooser, CatalogType resourceType
     , AddCallBack createListViewItemCB
     , MainForm.updateProgressCallback updateProgressCB
     , stopFillingCallback stopFillingCB
     , fillingCompleteCallback fillingCompleteCB
     )
 {
     this.control = objectChooser;
     this.resourceType = resourceType;
     this.addCB = createListViewItemCB;
     this.updateProgressCB = updateProgressCB;
     this.stopFillingCB = stopFillingCB;
     this.fillingCompleteCB = fillingCompleteCB;
 }
예제 #13
0
 public TGISearch(MainForm.CheckInstallDirsCB checkInstallDirsCB, MainForm.updateProgressCallback updateProgressCB)
     : this()
 {
     this.checkInstallDirsCB = checkInstallDirsCB;
     this.updateProgressCB   = updateProgressCB;
 }
예제 #14
0
 public TGISearch(MainForm.CheckInstallDirsCB checkInstallDirsCB, MainForm.updateProgressCallback updateProgressCB)
     : this()
 {
     this.checkInstallDirsCB = checkInstallDirsCB;
     this.updateProgressCB = updateProgressCB;
 }
예제 #15
0
 public TGISearchThread(Control control, Criteria criteria,
     AddCallBack addCB, MainForm.updateProgressCallback updateProgressCB, stopSearchCallback stopSearchCB, searchCompleteCallback searchCompleteCB)
 {
     this.control = control;
     this.criteria = criteria;
     this.addCB = addCB;
     this.updateProgressCB = updateProgressCB;
     this.stopSearchCB = stopSearchCB;
     this.searchCompleteCB = searchCompleteCB;
 }