using System; using System.ComponentModel; using System.Diagnostics; using System.Drawing; using System.Linq; using System.Windows.Forms; using ArdupilotMega.Controls.BackstageView; using ArdupilotMega.Presenter; using Transitions; using System.Collections; namespace ArdupilotMega.GCSViews.ConfigurationView { public partial class ConfigMount : UserControl, IActivate { private Transition[] _ErrorTransition; private Transition _NoErrorTransition; bool startup = true; public string ParamHead = "MNT_"; public ConfigMount() { InitializeComponent(); var delay = new Transition(new TransitionType_Linear(2000)); var fadeIn = new Transition(new TransitionType_Linear(800)); _ErrorTransition = new[] { delay, fadeIn }; _NoErrorTransition = new Transition(new TransitionType_Linear(10)); //setup button actions foreach (var btn in Controls.Cast().OfType