Exemple #1
0
        private void LoadCurrentMeshWithOpenBrf(ListBox lb)
        {
            int selectedIndex = lb.SelectedIndex;

            if (selectedIndex >= 0)
            {
                try
                {
                    string itemID = lb.SelectedItem.ToString().Split('-')[1].TrimStart();
                    itemID = itemID.Substring(itemID.IndexOf('_') + 1);
                    for (int i = 0; i < itemsRList.Count; i++)
                    {
                        if (itemID.Equals(itemsRList[i].ID))
                        {
                            Item itemX = (Item)itemsRList[i];
                            for (int j = 0; j < itemX.Meshes.Count; j++)
                            {
                                string sss = itemX.Meshes[j].Name.Trim();
                                Console.WriteLine("|" + sss + "|");
                                Console.WriteLine("void LoadCurrentMeshWithOpenBrf(ListBox lb) : " + OpenBrfManager.SelectItemNameByKind(sss));
                            }
                            i = itemsRList.Count;
                        }
                    }
                }
                catch (Exception ex)
                {
                    Console.WriteLine(ex.ToString());
                }
            }
        }