Esempio n. 1
0
 //Feladat szerkesztése a listview-ban
 public void EditTaksInListView(Task task, int index)
 {
     String alarm = (task.isAlarm()) ? "Igen" : "Nem";
     lvTasks.Items[index].SubItems[0].Text = task.getPriority();
     lvTasks.Items[index].SubItems[1].Text = task.getName();
     lvTasks.Items[index].SubItems[2].Text = task.getCategory();
     lvTasks.Items[index].SubItems[3].Text = task.getDate().ToString(DateTimeFormat);
     lvTasks.Items[index].SubItems[4].Text = alarm;
 }
Esempio n. 2
0
        //Feladat hozzáadása a listview-hoz
        public void AddTaskToListView(Task task)
        {
            String alarm = (task.isAlarm()) ? "Igen" : "Nem";

            ListViewItem lvi = new ListViewItem(task.getPriority());
            lvi.SubItems.Add(task.getName());
            lvi.SubItems.Add(task.getCategory());
            lvi.SubItems.Add(task.getDate().ToString(DateTimeFormat));
            lvi.SubItems.Add(alarm);
            lvTasks.Items.Add(lvi);
        }