public InternalSimVM(InternalSimController model) { md = model; Modules = CollectionViewSource.GetDefaultView(md.Modules); Buses = CollectionViewSource.GetDefaultView(md.Buses); md.PropertyChanged += ModelPropertyChanged; }
private void Window_Loaded(object sender, RoutedEventArgs e) { IntSimController = new InternalSimController(); IntSimControllerVM = new InternalSimVM(IntSimController); InternalSimViewPanel.DataContext = IntSimControllerVM; MenuBarStart.DataContext = IntSimControllerVM; MenuBarStop.DataContext = IntSimControllerVM; }
public ModuleEditDialog(InternalSimController controller) { simController = controller; InitializeComponent(); }