コード例 #1
0
        private bool TryGetToolTip(string key, out ToolTipBase tipCom)
        {
            tipCom = null;
            if (string.IsNullOrEmpty(key))
            {
                return(false);
            }

            if (_tipDitc == null)
            {
                return(false);
            }

            return(_tipDitc.TryGetValue(key, out tipCom));
        }
コード例 #2
0
        private bool TryGetToolTip <T>(out ToolTipBase tipCom) where T : ToolTipBase, new()
        {
            var key = GetToolTipKey <T>();

            return(TryGetToolTip(key, out tipCom));
        }