public MessageDisplay(Control[] parentControls, Control templateControl, IUiThreadInvoke uiThreadInvoke) { _templateControl = templateControl; _messagesLabels = new Label[parentControls.Length]; for (var pos = 0; pos < _messagesLabels.Length; pos++) { _messagesLabels[pos] = new Label { Name = "AA_MessageDisplay", AutoSize = true, ForeColor = _templateControl.ForeColor, BackColor = _templateControl.BackColor, Visible = false, Dock = DockStyle.Bottom, Margin = new Padding(_templateControl.Height), Font = new Font(FontFamily.GenericSansSerif, 10, FontStyle.Bold) }; } _uiThreadInvoke = uiThreadInvoke; _uiThreadInvoke.FireAndForget(() => { for (var pos = 0; pos < _messagesLabels.Length; pos++) { parentControls[pos].Controls.Add(_messagesLabels[pos]); _messagesLabels[pos].BringToFront(); } }); }
public WpfAuthorizeDisplay(IUiThreadInvoke invoke, IWin32Window owner = null, int width = 800, int height = 600) { _invoke = invoke; _owner = owner; _width = width; _height = height; }
public MissionPlannerAdapter(IUiThreadInvoke uiThreadInvoke, IMap flightDataMap, IMap flightPlanningMap, Func <IList <Locationwp> > getFlightPlan, ISettings settings) { FlightDataMap = flightDataMap; FlightPlanningMap = flightPlanningMap; _uiThreadInvoke = uiThreadInvoke; _getFlightPlan = getFlightPlan; _settings = settings; }
public MapInfoDockPanel(Control parent, IUiThreadInvoke uiThreadInvoke) { _parent = parent; _uiThreadInvoke = uiThreadInvoke; }