示例#1
0
        public void LoadTSOFile(Stream source)
        {
            TSOFigure      fig      = GetSelectedOrCreateFigure();
            List <TSOFile> tso_list = fig.LoadTSOFile(source);

            foreach (TSOFile tso in tso_list)
            {
                tso.Open(device, effect);
                fig.AddTSO(tso);
            }
        }
示例#2
0
        public void AddFigureFromTSODirectory(string source_file)
        {
            TSOFigure      fig      = new TSOFigure();
            List <TSOFile> tso_list = fig.LoadTSOFile(source_file);

            foreach (TSOFile tso in tso_list)
            {
                tso.Open(device, effect);
                fig.AddTSO(tso);
            }
            figureIndex = TSOFigureList.Count;
            TSOFigureList.Add(fig);
        }