Ejemplo n.º 1
0
        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");
        }
Ejemplo n.º 2
0
        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();
        }
Ejemplo n.º 3
0
 public void provideLists(ItemNameIdentifiedList t, ItemNameIdentifiedList prof, ItemNameIdentifiedList prox)
 {
     tasksList    = t;
     profilesList = prof;
     proxiesList  = prox;
 }