public FDesktop(IFormFactory formFactory, IStatProvider statProvider, IErrorOutput errorOutput, IIlsProvider ilsProvider, IConfigManager configManager, NotificationManager notify, IOperationProgress operationProgress, ChangeTracker changeTracker) { this.configManager = configManager; InitializeComponent(); this.notify = notify; this.operationProgress = operationProgress; this.statProvider = statProvider; this.changeTracker = changeTracker; notify.ParentForm = this; this.formFactory = formFactory; this.errorOutput = errorOutput; this.ilsProvider = ilsProvider; statUser = new StatUser(); locations = new List <Location>(); apiStatWrapper = new ApiStatsWrapper(errorOutput, configManager, formFactory); FormClosing += FDesktop_FormClosing; Closed += FDesktop_Closed; }