public Error PushFacade(string _uuid, View.Facade _facade) { board_.getLogger().Info("push facade {0}", _uuid); if (facades_.ContainsKey(_uuid)) { return(Error.NewAccessErr("facade {0} exists", _uuid)); } facades_[_uuid] = _facade; return(Error.OK); }
/// <summary>添加UI装饰</summary> /// <param name="_uuid">UI装饰唯一识别码</param> /// <param name="_model">UI装饰实例</param> /// <returns>错误</returns> public Error PushFacade(string _uuid, View.Facade _facade) { return(board_.getViewCenter().PushFacade(_uuid, _facade)); }
public View.Facade FindFacade(string _uuid) { View.Facade facade = null; facades_.TryGetValue(_uuid, out facade); return(facade); }