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); } }
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); }