Пример #1
0
 private void RC_Properties_Click(object sender, RoutedEventArgs e)
 {
     if (ListBox_Main.SelectedIndex >= 0)
     {
         FWindow.FCurrentAsset = ListBox_Main.SelectedItem.ToString();
         AssetInformations.OpenAssetInfos();
     }
 }
Пример #2
0
        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);
            }
        }