private void OpenFileButton_Click(object sender, RoutedEventArgs e) { if ((sender as Button)?.Tag is FunctionInfo info) { FolderUtility.OpenFile(info.ProgramName, info.GetFileFullPath(), info.WorkDirection); } }
private void OpenFolderButton_Click(object sender, RoutedEventArgs e) { var path = (sender as Button)?.Tag; if (path != null) { FolderUtility.ExploreFolder(path.ToString()); } }
private void OpenFolderButton_Click(object sender, RoutedEventArgs e) { if (!(sender is Button button)) { return; } var folderPath = button.Tag.ToString(); FolderUtility.ExploreFolder(folderPath); }