public static F1Theme Load() { F1TVOverlay overlay = new F1TVOverlay(); F1ControlTabs controls = new F1ControlTabs(overlay, API.Instance); return(new F1Theme(overlay, controls)); }
public F1ControlTabs(IThemeWindow window, API api) { ThemeWindow = window; f1Window = window as F1TVOverlay; this.api = api; this.autoCommit = true; this.driverUpdate = true; this.cameraUpdate = true; this.canUpdateDO1 = true; this.canUpdateDO2 = true; this.canUpdateFp = true; InitializeComponent(); CameraModule = api.FindModule("CameraModule") as CameraModule; DriverModule = api.FindModule("DriverModule") as DriverModule; }
private F1Theme(F1TVOverlay overlay, F1ControlTabs controls) : base(overlay, controls, ThemeType.F1) { this.window = overlay; this.controls = controls; }