protected virtual void OnFolderChanging(FolderChangingEventArgs args) { var handler = FolderChanging; if (handler != null) { handler(this, args); } }
private void task_folderChangeRequest(object sender, FolderChangingEventArgs e) { var task = (Task)sender; Debug.Assert(m_taskList.Contains(task)); if (e.Folder == null || m_folderList.Contains(e.Folder)) { e.Cancel = false; } else { e.Cancel = true; } }