/// <summary>Handles the RecentItemClick event of the RecentFiles control.</summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="RecentItemClickEventArgs"/> instance containing the event data.</param> private void RecentFiles_RecentItemClick(object sender, RecentItemClickEventArgs e) { if ((DataContext?.OpenProjectCommand == null) || (e.Item == null)) { return; } if (!DataContext.OpenProjectCommand.CanExecute(e.Item)) { return; } DataContext.OpenProjectCommand.Execute(e.Item); }
private void RecentFiles_ItemClick(object sender, RecentItemClickEventArgs e) { this.ShowFileDifferences(e.Values.ElementAt(0), e.Values.ElementAt(1), DialogDisplay.UseOption); }
private void Deck_Click(object sender, RecentItemClickEventArgs e) { StartJob(e.Item.Path); }
private void RecentPaths_ItemClick(object sender, RecentItemClickEventArgs e) { this.PopulateTree(e.Item); }