예제 #1
0
        //테스크 추가하기
        private void addTask(object sender, EventArgs e)
        {
            string ts = txtTs.Text;
            string day = date.Text;
            string memo = rtxMemo.Text;
            txtTs.Text="";
            date.Text = "";
            rtxMemo.Text = "";

            string workerName = this.treeView1.SelectedNode.Text;

            this.treeView1.SelectedNode.Nodes.Add(ts);

            TaskInfo info = new TaskInfo(ts, day, memo);
            workerTable.addTaskToWorker(workerName, info);
        }
예제 #2
0
 public void addTaskToWorker(string name, TaskInfo task)
 {
     List<TaskInfo> taskList = (List<TaskInfo>)mTable[name];
     taskList.Add(task);
 }