Advertisement
Guest User

Custom IAction

a guest
Feb 24th, 2013
436
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.03 KB | None | 0 0
  1.     public class RaceSortAction : IAction
  2.     {
  3.         private string _alias = "RaceSortAction";
  4.  
  5.         public string Alias
  6.         {
  7.             get { return _alias; }
  8.         }
  9.  
  10.         public bool CanBePermissionAssigned
  11.         {
  12.             get { return false; }
  13.         }
  14.  
  15.         public string Icon
  16.         {
  17.             get { return umbraco.BusinessLogic.Actions.ActionSort.Instance.Icon; }
  18.         }
  19.  
  20.         public string JsFunctionName
  21.         {
  22.             get
  23.             {
  24.                 return "OpenSortWindow();";
  25.             }
  26.         }
  27.        
  28.         public string JsSource
  29.         {
  30.             get { return "function OpenSortWindow(){ var node = UmbClientMgr.mainTree().getActionNode();UmbClientMgr.openModalWindow('/Umbraco/Dialogs/RaceNodeSort.aspx?id='+ node.nodeId, 'Sort items', true, 350, 380); }"; }
  31.         }
  32.  
  33.         public char Letter
  34.         {
  35.             get { return '2'; }
  36.         }
  37.  
  38.         public bool ShowInNotifier
  39.         {
  40.             get { return false; }
  41.         }
  42.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement