BudgetAnalyser.Engine.Widgets.NewFileWidget.Update C# (CSharp) Method

Update() public method

Updates the widget with new input.
public Update ( ) : void
return void
        public override void Update([NotNull] params object[] input)
        {
            if (input == null)
            {
                throw new ArgumentNullException(nameof(input));
            }

            if (!ValidateUpdateInput(input))
            {
                return;
            }

            var appDb = input[0] as ApplicationDatabase;
            ToolTip = "Create a new Budget Analyser File.";
            DetailedText = "Create new";
            ColourStyleName = appDb == null ? WidgetWarningStyle : WidgetStandardStyle;
        }
    }