public SettingsForm(PlaybackChangerContext context) { InitializeComponent(); _context = context; _startOnSystemStart = SettingsManager.Settings.StartOnSystemStart; borderPanelColorLegendDefault.BackColor = Constants.DefaultColor; borderPanelColorLegendActive.BackColor = Constants.ActiveColor; borderPanelColorLegendIgnored.BackColor = Constants.IgnoredColor; borderPanelColorLegendUnplugged.BackColor = Constants.UnpluggedColor; borderPanelColorLegendDisabled.BackColor = Constants.DisabledColor; borderPanelColorLegendNotPresent.BackColor = Constants.NotPresentColor; }
public QuickviewForm(PlaybackChangerContext context) { InitializeComponent(); buttonUpdate.Tag = new VersionTag(null, string.Empty, Enums.Constants.UpdateType.check); _context = context; SetStyle(ControlStyles.UserPaint, true); SetStyle(ControlStyles.AllPaintingInWmPaint, true); SetStyle(ControlStyles.DoubleBuffer, true); this.Location = FormLocationHelper.GetLocation(mySize); buttonSettings.FlatAppearance.BorderColor = Color.FromArgb(0, 255, 255, 255); SetColors(); var devices = _context.DeviceController.Devices; PopulateDevices(devices); }