Advertisement
Guest User

Untitled

a guest
Apr 16th, 2014
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. (Designer.Context.Services.GetService<ModelService>().Root.GetCurrentValue() as RootActivity).Variables.Add(new Variable<bool>("a",false));
  2.  
  3. var modelItem = Designer.Context.Services.GetService<ModelService>().Root;
  4.  
  5. modelItem.Value.Properties["Variables"].Collection.Add(new Variable<bool>("a",false));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement