コード例 #1
0
 public VWPMainWindow()
 {
     InitializeComponent();
     dataContext = new SeriesToDisplayViewModel();
     dataContext.PropertyChanged   += DataContext_PropertyChanged;
     dataContext.SelectTheseSeries += DataContext_SelectTheseSeries;
     SeriesListView.DataContext     = dataContext;
     Clean.Command     = new CommandHandler(() => Clear(), true);
     load50.Command    = new CommandHandler(() => Load(50), true);
     load250.Command   = new CommandHandler(() => Load(250), true);
     load1000.Command  = new CommandHandler(() => Load(1000), true);
     loadAll.Command   = new CommandHandler(() => Load(int.MaxValue), true);
     add250.Command    = new CommandHandler(() => Add(250), true);
     add1000.Command   = new CommandHandler(() => Add(1000), true);
     toggleVPW.Command = new CommandHandler(() => EnableVWP(), true);
     find.Command      = new CommandHandler(() => FindSomething(), true);
 }
コード例 #2
0
 public FindViewModel(SeriesToDisplayViewModel seriesVM) : this()
 {
     SeriesListViewModel = seriesVM;
 }