Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //2529
- if (
- (parentTask.Preset.ChildKind.ChildTaskKindType == ChildTaskKindType.ParentTaskKind
- && parentTask.SystemInfo.CardKind != kind)
- ||
- (parentTask.Preset.ChildKind.ChildTaskKindType == ChildTaskKindType.KindFromList
- && !TaskTreeView.IsKindCreatable(parentTask.Preset.ChildKind.ChildKindSettings, kind))
- )
- {
- this.UIService.ShowMessage(Resources.TaskTreeView_CreateChildTaskWrongKind, Resources.TaskTreeView_ChildTaskCreationCaption, MessageBoxButtons.OK);
- return null;
- }
- //2559
- if (
- (parentTask.Preset.ChildKind.ChildTaskKindType == ChildTaskKindType.ParentTaskKind
- && parentTask.SystemInfo.CardKind != kind)
- ||
- (parentTask.Preset.ChildKind.ChildTaskKindType == ChildTaskKindType.KindFromList
- && !TaskTreeView.IsKindCreatable(parentTask.Preset.ChildKind.ChildKindSettings, kind)))
- {
- this.UIService.ShowMessage(Resources.TaskTreeView_CreateChildTaskWrongKind, Resources.TaskTreeView_ChildTaskCreationCaption, MessageBoxButtons.OK);
- return null;
- }
- //2559 patch
- if (
- (parentTask.Preset.ChildKind.ChildTaskKindType == ChildTaskKindType.ParentTaskKind
- && parentTask.SystemInfo.CardKind != kind)
- ||
- (parentTask.Preset.ChildKind.ChildTaskKindType == ChildTaskKindType.KindFromList
- && !TaskTreeView.IsKindCreatable(parentTask.Preset.ChildKind.ChildKindSettings, kind)))
- {
- this.UIService.ShowMessage(Resources.TaskTreeView_CreateChildTaskWrongKind, Resources.TaskTreeView_ChildTaskCreationCaption, MessageBoxButtons.OK);
- return null;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement