public void RemoveThumbtack(ThumbtackInfo ttInfo) { if (_scope == null) { return; } var action = _scope.GetVariable <Action <string> >("RemoveThumbtack"); if (action == null) { return; } action(ttInfo.Key); }
public void ShowThumbtack(ThumbtackInfo ttInfo) { EnsureScropeCreated(); if (_scope == null) { return; } var action = _scope.GetVariable <Action <ThumbtackInfo> >("ShowThumbtack"); if (action == null) { return; } action(ttInfo); }