protected override void OnExecuted(EventArgs e) { base.OnExecuted(e); MissileDesignVM designVM = new MissileDesignVM(_gameVM); Views.MainWindow mw = (Views.MainWindow)Application.Instance.MainForm.Content; mw.AddOrSelectTabPanel("Missile Design", new Views.MissileDesignView(designVM)); }
public MissileDesignView(MissileDesignVM viewmodel) : this() { ChainedSlidersCtrl.SetViewModel(viewmodel.ChainedSliders); DataContext = viewmodel; }