protected virtual bool Work() { finder = null; if (findObject == null) { SetTip("查找对象不能为空", MessageType.Warning); return(false); } return(true); }
public FinderToolBase GetTool(FinderViewBase.FindFromType type) { FinderToolBase tool = null; if (dicTools.ContainsKey(type)) { tool = dicTools[type]; } if (tool == null) { switch (type) { case FinderViewBase.FindFromType.FromPath: { tool = GetToolPath(); } break; case FinderViewBase.FindFromType.FromObject: { tool = GetToolObject(); } break; case FinderViewBase.FindFromType.FromCurScene: { tool = GetToolCurScene(); } break; } if (tool != null) { tool.mgr = this; if (!dicTools.ContainsKey(type)) { dicTools.Add(type, tool); } else { dicTools[type] = tool; } } } return(tool); }
public FinderViewBase() { finder = null; tipType = MessageType.Info; }