public WorkflowNavigationShortcutItem(Guid stateId) { Command = new MethodDelegateCommand(() => { var wm = ServiceRegistration.Get <IWorkflowManager>(); wm.NavigatePush(stateId); }); }
public TVSearchShortcut() { Command = new MethodDelegateCommand(() => { var wm = ServiceRegistration.Get <IWorkflowManager>(); wm.NavigatePush(new Guid("CB5D4851-27D2-4222-B6A0-703EDC2071B5")); }); }
public SiteSettingViewModel(SiteViewModel site, FieldPropertyDescriptorByRef propertyDescriptor) : base(Consts.KEY_NAME, propertyDescriptor.DisplayName) { Site = site; PropertyDescriptor = propertyDescriptor; _nameProperty = new WProperty(typeof(string), propertyDescriptor.DisplayName); _descriptionProperty = new WProperty(typeof(string), propertyDescriptor.Description); _isPasswordProperty = new WProperty(typeof(bool), propertyDescriptor.IsPassword); string valueAsString = site.Site.GetConfigValueAsString(propertyDescriptor); _valueProperty = new WProperty(typeof(string), propertyDescriptor.IsPassword ? new string('*', valueAsString.Length) : valueAsString); _newValueProperty = new WProperty(typeof(string), valueAsString); _possibleValuesProperty = new WProperty(typeof(ItemsList), null); Command = new MethodDelegateCommand(() => Configure()); }
public WorkflowActionShortcutItem(Guid modelId, string method) { Command = new MethodDelegateCommand(() => { var wm = ServiceRegistration.Get <IWorkflowManager>(); object model = wm.GetModel(modelId); if (model == null) { return; } MethodInfo mi = model.GetType().GetMethod(method); if (mi == null) { return; } mi.Invoke(model, new object[] { }); }); }
public MediaScreenShortcutItem(Guid mediaNavigationRootState, Type filterScreenType) { Command = new MethodDelegateCommand(() => NavigateToFilterScreen(mediaNavigationRootState, filterScreenType)); }