public LineFollowingModuleView(LineFollowingModule controller) : base(controller) { InitializeComponent(); controller.ModuleSelected += (e, s) => { btnStart.Click += OnStartPressed; btnStart.Click -= OnStopPressed; }; }
private void OnHSVViewPressed(object sender, RoutedEventArgs e) { Controller.Stop(); Window window = new Window(); var props = Controller.Properties as LineFollowingProperties; HsvPickerView picker = new HsvPickerView(window, props: props); LineFollowingModule controller = Controller as LineFollowingModule; picker.SaveClicked += controller.UpdateHsvSpace; window.Content = picker; window.Show(); }