コード例 #1
0
        public MainWindow()
        {
            InitializeComponent();
            DataContext = this;

            try
            {
                JsonColl = JsonConvert.DeserializeObject <Json_ItemColl>(File.ReadAllText(@"..\..\candidatetest-master\TypeInfos.json"));
            }
            catch (Exception) { Console.Beep(); this.Close(); };
        }
コード例 #2
0
 bool CSV_Json_Link(List <CSV_item> CSV_List, Json_ItemColl JsonColl)
 {
     foreach (CSV_item CSV_Item in CSV_List)
     {
         foreach (Json_ItemType Json_Item in JsonColl.TypeInfos)
         {
             if (Json_Item.TypeName == CSV_Item.Type)
             {
                 CSV_Item.Propertys = Json_Item.Propertys;
                 break;
             }
         }
     }
     return(true);
 }