public void MoveLastTask()
{
int index = -1;
m_tasksTreeView.Model.Foreach (delegate (TreeModel m, TreePath p, TreeIter i) {
index = p.Indices [0];
return false;
});
if (index == -1)
return;
TreePath path;
TreeViewColumn column;
m_tasksTreeView.GetCursor (out path, out column);
path = new TreePath (new int[] {index});
if (column == null)
column = m_tasksTreeView.Columns[3];
m_tasksTreeView.GrabFocus ();
m_tasksTreeView.SetCursor (path, column, false);
}