Ejemplo n.º 1
0
        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");
            });
        }
Ejemplo n.º 2
0
 public void AddFunction(CustomFormFunction customFunction)
 {
     _customfunctions.Add(customFunction);
 }