public void DeleteSelectedSlogs() { TreeSelection tSelect = SlogTreeView.Selection; if(tSelect.CountSelectedRows() == 1) { TreeModel tModel; TreeIter iter; tSelect.GetSelected(out tModel, out iter); if(tModel != null) tModel = null; curSlog = (Slog) SlogTreeStore.GetValue(iter,0); curSlog.Commit(curSlog.Delete()); SlogTreeStore.Remove(ref iter); curSlog = null; Refresh(); } }