本文整理汇总了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 });
}
}