Exemple #1
0
 public ApplicationPage()
 {
     SwappedOut += Dispose;
     InitializeComponent();
     ViewModel = new ApplicationViewModel(Lib.IoC.Get <MainPageViewModel>().SelectedApplication !, Lib.IoC.Get <ModConfigService>(), Lib.IoC.Get <ModUserConfigService>(), Lib.IoC.Get <LoaderConfig>());
     ViewModel.PropertyChanged += WhenPageChanged;
     ViewModel.ChangeApplicationPage(ApplicationSubPage.ApplicationSummary);
 }
Exemple #2
0
 private void SelectedProcessOnExited(object sender, EventArgs e)
 {
     ApplicationViewModel.SelectedProcess.Exited -= SelectedProcessOnExited;
     ApplicationViewModel.ChangeApplicationPage(ApplicationSubPage.ApplicationSummary);
 }