コード例 #1
0
        /// <summary>
        /// Search an element on FFXIVCrafting
        /// </summary>
        private void SearchThread()
        {
            string        elemToSearch = VPThreading.GetText(_searchTextBox);
            int           minLevel     = (int)VPThreading.GetValue(_minLevelNumericUpDown);
            int           maxLevel     = (int)VPThreading.GetValue(_maxLevelNumericUpDown);
            List <string> jobs         = new List <string>();

            lock (_locker)
            {
                jobs = _jobFilter;
            }
            Service_Misc.LogText(_logTextBox, "Alright, let's look for " + elemToSearch);
            List <FFXIVSearchItem> listResults = GarlandTool.Search(elemToSearch, _logTextBox, FFXIVItem.TypeItem.Crafted, jobs, minLevel, maxLevel);

            //Storing in options
            MiqoCraftOptions options = new MiqoCraftOptions();

            options.Load(OptionLocation.UserOption);
            options.LastSearchResult = listResults;
            options.Save();

            if (listResults.Count > 0)
            {
                Service_Misc.LogText(_logTextBox, "All done ! Found " + listResults.Count + " items!");
            }
            else
            {
                Service_Misc.LogText(_logTextBox, "All done ! But I couldn't find your item...");
            }

            DisplayItemList(listResults);
        }
コード例 #2
0
 private void DownloadFromURLThread()
 {
     DownloadFromURL(VPThreading.GetText(_urlTextBox));
 }