public UpdateViewModel() { _checkedPaths = new ObservableCollection <UpdateModel>(); ProcessSelectedCmd = new DoStuffCommand(() => ProcessPath(SelectedPathModel), obj => true); MergeMatchCmd = new DoStuffCommand(MergeMatchRecords, obj => true); SuperTimer = new DispatcherTimer(); SuperTimer.Interval = TimeSpan.FromSeconds(2); SuperTimer.Tick += SuperTimer_Tick; SuperTimer.IsEnabled = true; Records = new RecordedMatch[6]; bool prettifySetup = false; RedA = new TeamIndicator(false, -1); RedB = new TeamIndicator(false, -1); RedC = new TeamIndicator(false, -1); BlueA = new TeamIndicator(true, -1); BlueB = new TeamIndicator(true, -1); BlueC = new TeamIndicator(true, -1); if (prettifySetup) { RedA.IsReady = true; RedC.IsReady = true; BlueB.IsReady = true; BlueA.IsReady = true; } _processAllNewFolders = false; }
public UpdateViewModel() { _checkedPaths = new ObservableCollection<UpdateModel>(); ProcessSelectedCmd = new DoStuffCommand(() => ProcessPath(SelectedPathModel), obj => true); MergeMatchCmd = new DoStuffCommand(MergeMatchRecords, obj => true); SuperTimer = new DispatcherTimer(); SuperTimer.Interval = TimeSpan.FromSeconds(2); SuperTimer.Tick += SuperTimer_Tick; SuperTimer.IsEnabled = true; Records = new RecordedMatch[6]; bool prettifySetup = false; RedA = new TeamIndicator(false, -1); RedB = new TeamIndicator(false, -1); RedC = new TeamIndicator(false, -1); BlueA = new TeamIndicator(true, -1); BlueB = new TeamIndicator(true, -1); BlueC = new TeamIndicator(true, -1); if (prettifySetup) { RedA.IsReady = true; RedC.IsReady = true; BlueB.IsReady = true; BlueA.IsReady = true; } _processAllNewFolders = false; }