Esempio n. 1
0
        /// <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);
        }
Esempio n. 2
0
 private void RecentFiles_ItemClick(object sender, RecentItemClickEventArgs e)
 {
     this.ShowFileDifferences(e.Values.ElementAt(0), e.Values.ElementAt(1), DialogDisplay.UseOption);
 }
Esempio n. 3
0
 private void Deck_Click(object sender, RecentItemClickEventArgs e)
 {
     StartJob(e.Item.Path);
 }
Esempio n. 4
0
 private void RecentPaths_ItemClick(object sender, RecentItemClickEventArgs e)
 {
     this.PopulateTree(e.Item);
 }