BudgetAnalyser.Engine.Widgets.UpdateMobileDataWidget.Update C# (CSharp) Метод

Update() публичный Метод

Updates the widget with new input.
public Update ( ) : void
Результат void
        public override void Update([NotNull] params object[] input)
        {
            if (input == null)
            {
                throw new ArgumentNullException(nameof(input));
            }

            Enabled = false;

            if (!ValidateUpdateInput(input)) return;

            LedgerBook = (LedgerBook) input[0];
            StatementModel = (StatementModel) input[1];
            BudgetCollection = (BudgetCollection) input[2];
            Filter = (GlobalFilterCriteria) input[3];

            if (LedgerBook == null || StatementModel == null || BudgetCollection == null || Filter == null) return;

            Enabled = true;
        }
    }