public void LoadFormButtons(IEnumerable <CustomFormFunction> functions) { ApplicationController.DoOnMainThread(() => { if (functions == null) { functions = new CustomFormFunction[0]; } _loadedFormButtons = functions; _customFunctions = new ObservableCollection <XrmButtonViewModel>(FormFunctionsToXrmButtons(functions)); OnPropertyChanged("CustomFunctions"); }); }
public void AddFunction(CustomFormFunction customFunction) { _customfunctions.Add(customFunction); }