Example #1
0
 private void OpenFileButton_Click(object sender, RoutedEventArgs e)
 {
     if ((sender as Button)?.Tag is FunctionInfo info)
     {
         FolderUtility.OpenFile(info.ProgramName, info.GetFileFullPath(), info.WorkDirection);
     }
 }
Example #2
0
        private void OpenFolderButton_Click(object sender, RoutedEventArgs e)
        {
            var path = (sender as Button)?.Tag;

            if (path != null)
            {
                FolderUtility.ExploreFolder(path.ToString());
            }
        }
Example #3
0
        private void OpenFolderButton_Click(object sender, RoutedEventArgs e)
        {
            if (!(sender is Button button))
            {
                return;
            }
            var folderPath = button.Tag.ToString();

            FolderUtility.ExploreFolder(folderPath);
        }