protected override void OnExecuted(EventArgs e) { base.OnExecuted(e); ShipDesignVM designVM = ShipDesignVM.Create(_gameVM); Views.MainWindow mw = (Views.MainWindow)Application.Instance.MainForm.Content; mw.AddOrSelectTabPanel("Ship Design", new Views.ShipDesignView(designVM)); }
public ShipDesignView(ShipDesignVM viewModel) : this() { ComponentListStack.Items.Add(new ComponentsListView(viewModel.ComponentsDesignedLists)); }