Пример #1
0
        public void RemoveThumbtack(ThumbtackInfo ttInfo)
        {
            if (_scope == null)
            {
                return;
            }
            var action = _scope.GetVariable <Action <string> >("RemoveThumbtack");

            if (action == null)
            {
                return;
            }
            action(ttInfo.Key);
        }
Пример #2
0
        public void ShowThumbtack(ThumbtackInfo ttInfo)
        {
            EnsureScropeCreated();
            if (_scope == null)
            {
                return;
            }
            var action = _scope.GetVariable <Action <ThumbtackInfo> >("ShowThumbtack");

            if (action == null)
            {
                return;
            }
            action(ttInfo);
        }