Ejemplo n.º 1
0
        private void btnAddTask_Click(object sender, EventArgs e)
        {
            var newTask = new LikerTask(txtTarget.Text,
                                        int.Parse(txtCount.Text), mainWorker.AccountContainer, mainWorker);

            foreach (var line in txtLinks.Lines)
            {
                newTask.AddUri(line);
            }

            mainWorker.SetLikerTask(newTask);
            parentForm.SetLikerTaskInfo();
            Close();
        }
Ejemplo n.º 2
0
 public void SetLikerTask(LikerTask likerTask)
 {
     CurrentTask = likerTask;
 }