public void Save() { if (!CanSave) { return; } app.SaveWorkingDirectory(WorkingDirectory); app.ShowSearch(); }
public HomeContext(bool canSearch, MiniMonglerApp app) { this.CanSearch = canSearch; this.GoToSearchCommand = new LambdaCommand( (l, p) => CanSearch, (l, p) => app.ShowSearch() ); this.GoToSelectWorkingDirectoryCommand = new LambdaCommand( (l, p) => app.ShowWorkingDirectorySelection() ); }