private void RC_Properties_Click(object sender, RoutedEventArgs e) { if (ListBox_Main.SelectedIndex >= 0) { FWindow.FCurrentAsset = ListBox_Main.SelectedItem.ToString(); AssetInformations.OpenAssetInfos(); } }
private void RC_Properties_Click(object sender, RoutedEventArgs e) { if (DataGrid_Search.SelectedIndex >= 0) { FileInfo item = (FileInfo)DataGrid_Search.SelectedItem; string selectedName = item.Name; if (selectedName.EndsWith(".uasset")) { selectedName = selectedName.Substring(0, selectedName.LastIndexOf('.')); } FWindow.FCurrentAsset = selectedName; AssetInformations.OpenAssetInfos(true); } }