LogViewer.Window1.RecentMenuItem_Click C# (CSharp) 메소드

RecentMenuItem_Click() 개인적인 메소드

private RecentMenuItem_Click ( object sender, RoutedEventArgs e ) : void
sender object
e System.Windows.RoutedEventArgs
리턴 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;
            }
        }