private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            Dictionary <String, ScriptModel> stepsDictionary = ScriptFileBusiness.GetScriptModelDictionary(fileName, out string introduce, out string audioResources);

            foreach (ScriptModel step in stepsDictionary.Values)
            {
                if (step.Visible)
                {
                    lbMain.Items.Add(step.Name);
                }
            }
            lbMain.Items.Add("Main");
            //LightScriptBusiness scriptBusiness = new LightScriptBusiness();
            //String command = scriptBusiness.LoadLightScript(fileName);
            //Dictionary<String, String> dictionary = scriptBusiness.GetCatalog(command, out Dictionary<String, List<String>> extendsDictionary, out Dictionary<String, List<String>> intersectionDictionary, out Dictionary<String, List<String>> complementDictionary);
            //foreach (var item in dictionary) {
            //    if (!item.Key.Trim().Equals("NoVisible") && !item.Key.Trim().Equals("Contain") && !item.Key.Trim().Equals("Introduce") && !item.Key.Trim().Equals("Final") && !item.Key.Trim().Equals("Locked"))
            //    {
            //        lbMain.Items.Add(item.Key);
            //    }
            //}
            //lbMain.Items.Add("Main");
        }
Esempio n. 2
0
 public Dictionary <String, ScriptModel> GetScriptModelDictionary(String filePath, out String introduce, out String audioResources)
 {
     return(ScriptFileBusiness.GetScriptModelDictionary(filePath, out introduce, out audioResources));
 }