public CommitView(GitViewModel gitViewModel, IList selectedFiles) { var commitViewModel = new CommitViewModel(); commitViewModel._gitViewModel = gitViewModel; commitViewModel._selectedFiles = selectedFiles; commitViewModel.CloseAction = () => { this.Close(); }; this.DataContext = commitViewModel; InitializeComponent(); }
public MasterViewModel(GitViewModel gitViewModel, FileAndFolderBrowserViewModel fileAndFolderBrowserViewModel, LockedFilesViewModel lockedFilesViewModel) { _gitViewModel = gitViewModel; _lockedFilesViewModel = lockedFilesViewModel; _fileAndFolderBrowserViewModel = fileAndFolderBrowserViewModel; // Used to refresh the files/folders that exist on the serevr after git has pulled/pushed new ones //new Task(() => //{ // while (true) // { // var selectedFolder = SelectedFolder; // _fileAndFolderBrowserViewModel.UpdateFilesAndFolders(); // SelectedFolder = selectedFolder; // OnPropertyChanged(nameof(FolderList)); // System.Threading.Thread.Sleep(10000); // } //}).Start(); }