예제 #1
0
 public MainViewModel()
 {
     ChangeAllSortersStateCommand = new Command(arg => ChangeAllSortersState());
     LoadArrayFromFileCommand = new Command(arg => new Thread(LoadArrayFromFile).Start());
     LoadArrayFromDBCommand = new Command(arg => new Thread(LoadArrayFromDB).Start());
     CloseWindowCommand = new Command(arg => CloseWindow());
     SorterControlViewModels = new ObservableCollection<SorterControlViewModel>();
     LoadSorters();            
 }
 public SorterControlViewModel(SorterModel sorter)
 {
     ChangeStateClickCommand = new Command(arg => ChangeStateClickMethod());
     MinimizeClickCommand = new Command(arg => MinimizeClickMethod());
     Sorter = sorter;
 }