本文整理匯總了C#中MindMate.Model.MapNode.IsTaskComplete方法的典型用法代碼示例。如果您正苦於以下問題:C# MapNode.IsTaskComplete方法的具體用法?C# MapNode.IsTaskComplete怎麽用?C# MapNode.IsTaskComplete使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類MindMate.Model.MapNode
的用法示例。
在下文中一共展示了MapNode.IsTaskComplete方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: Tree_AttributeChanged
private void Tree_AttributeChanged(MapNode node, AttributeChangeEventArgs e)
{
//// Task List Change
// task completed
if (e.ChangeType == AttributeChange.Added && e.AttributeSpec.IsCompletionDate())
{
Add(node);
TaskChanged(node, GetEventArgs(node, CompletedTaskChange.TaskCompleted, e));
}
// task removed
else if (e.ChangeType == AttributeChange.Removed && e.AttributeSpec.IsCompletionDate())
{
if (Remove(node))
{
TaskChanged(node, GetEventArgs(node, CompletedTaskChange.TaskRemoved, e));
}
}
// completion date updated
else if(e.ChangeType == AttributeChange.ValueUpdated && e.AttributeSpec.IsCompletionDate())
{
Remove(node);
Add(node);
TaskChanged(node, GetEventArgs(node, CompletedTaskChange.CompletionDateUpdated, e));
}
//// Task Property Change (which doesn't affect list)
else if(CompletedTaskPropertyChanged != null && e.AttributeSpec.IsStartDate() && node.IsTaskComplete())
{
var args = new CompletedTaskPropertyEventArgs(){ PropertyChanged = CompletedTaskProperty.StartDate };
if (!string.IsNullOrEmpty(e.oldValue)) args.OldValue = DateHelper.ToDateTime(e.oldValue);
CompletedTaskPropertyChanged(node, args);
}
}
示例2: ShowIcon
public bool ShowIcon(MapNode node)
{
return node.IsTaskComplete();
}
示例3: SelectedNodes_NodeDeselected
private void SelectedNodes_NodeDeselected(MapNode node, SelectedNodes selectedNodes)
{
if (TaskSelectionChanged == null) return;
if (node.IsTaskComplete())
{
TaskSelectionChanged(node, new TaskSelectionEventArgs() { ChangeType = TaskSelectionChange.Deselected });
}
}