LogViewer.Window1.RecentMenuItem_Click C# (CSharp) Method

RecentMenuItem_Click() private method

private RecentMenuItem_Click ( object sender, RoutedEventArgs e ) : void
sender object
e System.Windows.RoutedEventArgs
return void
        private void RecentMenuItem_Click(object sender, RoutedEventArgs e)
        {
            var context = ((System.Windows.Controls.MenuItem)sender).DataContext as RecentFile;
            if (null != context)
            {
                fileName = context.Filepath;
            }
        }