public TaskInfoWindow(Bot bot, bool editMode, string editedName) { id = 1; InitializeComponent(); this.bot = bot; this.editMode = editMode; this.editedName = editedName; ItemNameIdentifiedList cds = bot.infoManager.GetProfilesList(); foreach (var cd in cds) { cbProfile.Items.Add(cd); } cbProxy.Items.Add("-"); ItemNameIdentifiedList proxies = bot.infoManager.GetProxiesList(); foreach (var proxy in proxies) { cbProxy.Items.Add(proxy); } cbProxy.SelectedIndex = 0; cbCategory.SelectedIndex = 0; cbSize.SelectedIndex = 0; cbProfile.SelectedIndex = 0; colId.DisplayMemberBinding = new Binding("Id"); colKeywords.DisplayMemberBinding = new Binding("Keywords"); colSize.DisplayMemberBinding = new Binding("Size"); colCategory.DisplayMemberBinding = new Binding("Category"); colColor.DisplayMemberBinding = new Binding("Color"); }
public Bot(InfoManager infoManager) { ItemNameIdentifiedList profileInfoList = new ItemNameIdentifiedList(); ItemNameIdentifiedList taskInfoList = new ItemNameIdentifiedList(); ItemNameIdentifiedList proxyInfoList = new ItemNameIdentifiedList(); this.infoManager = infoManager; this.infoManager.provideLists(taskInfoList, profileInfoList, proxyInfoList); cookies = new Dictionary <string, CookieContainer>(); settings = new BotSettings(); }
public void provideLists(ItemNameIdentifiedList t, ItemNameIdentifiedList prof, ItemNameIdentifiedList prox) { tasksList = t; profilesList = prof; proxiesList = prox; }