public void Setup(UIViewModel model, AppConfig profile) { this.model = model; DataContext = profile.Config; xx.ItemsSource = model.ConfigControls; model.ConfigControls.Add(new BasicConfigControl()); model.ConfigControls.Add(new StripGCodeConfigControl()); model.ConfigControls.Add(new JogConfigControl()); }
public void Setup(UIViewModel model, AppConfig profile) { if (this.model == null) { this.model = model; grblmodel = DataContext as GrblViewModel; DataContext = profile.Base; xx.ItemsSource = model.ConfigControls; model.ConfigControls.Add(new BasicConfigControl()); if (AppConfig.Settings.Jog.Mode != JogConfig.JogMode.Keypad) { model.ConfigControls.Add(new JogUiConfigControl()); } if (AppConfig.Settings.Jog.Mode != JogConfig.JogMode.UI) { model.ConfigControls.Add(new JogConfigControl()); } model.ConfigControls.Add(new StripGCodeConfigControl()); } }
public void Setup(UIViewModel model, AppConfig profile) { }