public MainViewModel() { FirstFlange = new Flange(); SecondFlange = new Flange(); Bolt = new Bolt(); Gasket = new Gasket(); OperatingConditions = new OperatingConditions(); MinimizeWindowCommand = new Command(Minimize); MaximizeRestoreCommand = new Command(MaximizeRestore); CloseWindowCommand = new Command(CloseWindow); SetDarkThemeCommand = new Command(() => SetTheme(Theme.Dark)); SetLightThemeCommand = new Command(() => SetTheme(Theme.Light)); SolveCommand = new Command(() => Solve()); }
public void SetClockStopAndOperatingConditions(ClockStopSupport clockStopSupport, OperatingConditions operatingConditions) { this.SetInterfaceByte(InterfaceByteGroupType.GlobalExtended, 0, InterfaceByteType.Ta, (byte)((((byte)clockStopSupport) & 0xC0) | ((byte)operatingConditions) & 0x3F)); this.InvokePropertyChanged(nameof(GlobalInterfaceBytes.ClockStopSupport)); this.InvokePropertyChanged(nameof(GlobalInterfaceBytes.ClockStopSupportValue)); this.InvokePropertyChanged(nameof(GlobalInterfaceBytes.OperatingConditions)); this.InvokePropertyChanged(nameof(GlobalInterfaceBytes.OperatingConditionsValue)); }