Exemple #1
0
        private void addRecentItem(SteamSite.SearchItem ourItem, status Stat)
        {
            string[] row = { string.Empty, ourItem.Name, ourItem.StartPrice };
            var lstItem = new ListViewItem(row);
            recentListView.Items.Add(lstItem);

            var ourTab = new saveTab(ourItem.Name, ourItem.Link, ourItem.ImgLink, ourItem.StartPrice, steam_srch.mainDelay, 0, false, 0, ourItem.StartPrice, Stat);
            steam_srch.recentInputList.Add(ourTab);

            setStatImg(recentListView.Items.Count - 1, (status)Convert.ToByte(!isScanValid(ourTab, false)), recentListView);
            SetColumnWidths(recentListView, true);
        }
Exemple #2
0
        private void addScanItem(SteamSite.SearchItem ourItem, int delay, int buyQuant, bool tobuy, int resellType, status Stat)
        {
            string[] row = { string.Empty, ourItem.Name, ourItem.StartPrice };
            var lstItem = new ListViewItem(row);
            scanListView.Items.Add(lstItem);

            var ourTab = new saveTab(ourItem.Name, ourItem.Link, ourItem.ImgLink, ourItem.StartPrice, delay, buyQuant, tobuy, resellType, ourItem.StartPrice, Stat);
            scanItems.Add(new MainScanItem(ourTab, steam_srch.cookieCont, new eventDelegate(Event_Message), settings.ignoreWarn, settings.resellDelay));
            setStatImg(scanListView.Items.Count - 1, (status)Convert.ToByte(!isScanValid(ourTab, true)), scanListView);
            SetColumnWidths(scanListView, true);
        }
Exemple #3
0
        private void addTabItem(string link, string price, string tabId, string imgLink)
        {
            if (tabId == string.Empty)
            tabControl1.TabPages.Add("Item " + (tabControl1.TabCount + 1).ToString());
            else
                tabControl1.TabPages.Add(tabId);

            ScanItem scanIt = new ScanItem();
            scanIt.Height = tabControl1.Height - 20;
            scanIt.Width = tabControl1.Width - 5;
            scanIt.Anchor = (AnchorStyles.Top | AnchorStyles.Right | AnchorStyles.Bottom | AnchorStyles.Left);
            tabControl1.TabPages[tabControl1.TabCount - 1].Controls.Add(scanIt);
            scanIt.linkValue = link;
            scanIt.wishedValue = price;
            scanIt.ImgLink = imgLink;
            scanIt.ButtonClick += new EventHandler(ScanItemButton_Click);
            ScanItLst.Add(scanIt);

            SteamSite ScanSite = new SteamSite();
            ScanSite.delegMessage += new eventDelegate(Event_Message);
            ScanSite.cookieCont = steam_srch.cookieCont;
            SteamLst.Add(ScanSite);
        }