Пример #1
0
        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));
        }
Пример #2
0
 public MissileDesignView(MissileDesignVM viewmodel) : this()
 {
     ChainedSlidersCtrl.SetViewModel(viewmodel.ChainedSliders);
     DataContext = viewmodel;
 }