コード例 #1
0
        protected virtual void OnFolderChanging(FolderChangingEventArgs args)
        {
            var handler = FolderChanging;

            if (handler != null)
            {
                handler(this, args);
            }
        }
コード例 #2
0
        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;
            }
        }
コード例 #3
0
ファイル: TaskData.cs プロジェクト: x-skywalker/Tasks.Show
 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;
     }
 }