0
가없는 코드Gtk.TreeModel의 값을 어떻게 변경합니까? Gtk.TreeModel.SetValue 여기에 영향
public void Update(TravTasks.TravellerTask data)
{
//UNDONE: this algorithm sucks
TreeIter iter;
if (this.tasks_tree_store.GetIterFirst(out iter))
{
string task_id = this.tasks_tree_store.GetValue(iter, 1).ToString();
if (task_id.Equals(data.ID.ToString()))
{
this.tasks_tree_store.SetValue(iter, 0, data.TaskName);
this.treeview3.ShowAll();
return;
}
while (this.tasks_tree_store.IterNext(ref iter))
{
task_id = this.tasks_tree_store.GetValue(iter, 1).ToString();
if (task_id.Equals(data.ID.ToString()))
{
this.tasks_tree_store.SetValue(iter, 0, data.TaskName);
return;
}
}
}
}
당신이 SetValue는 실제로 호출되는 것을 확신은? –
예, 방금 다시 디버깅했습니다. –