28 lines
789 B
C#
28 lines
789 B
C#
|
using System.Collections.ObjectModel;
|
||
|
using System.Reactive.Disposables;
|
||
|
using System.Reactive.Linq;
|
||
|
|
||
|
using ReactiveUI;
|
||
|
using ReactiveUI.SourceGenerators;
|
||
|
using Splat;
|
||
|
|
||
|
namespace StarsAssistant.ViewModels;
|
||
|
|
||
|
public partial class BuColViewModel : ViewModelBase, IActivatableViewModel
|
||
|
{
|
||
|
public ViewModelActivator Activator { get; } = new ViewModelActivator();
|
||
|
|
||
|
public BuColViewModel()
|
||
|
{
|
||
|
this.WhenActivated((CompositeDisposable disposables) =>
|
||
|
{
|
||
|
// /* handle activation */
|
||
|
// Disposable
|
||
|
// .Create(() => { /* handle deactivation */ })
|
||
|
// .DisposeWith(disposables);
|
||
|
});
|
||
|
}
|
||
|
|
||
|
public ObservableCollection<PlanetViewModel> Planets { get; } = PlanetViewModel.LoadAll();
|
||
|
}
|