//---------------------------------------------------------- public void FromParams( ) { for (int i = 0; i < Params.Count; i++) { string tag = Params[i].Tag; if (String.Compare(tag, TSSaveFile.D_LayerCount, true) == 0) { m_CellCount = Params[i].GetValueInt(TSdef.CellCount); } else if (String.Compare(tag, TSSaveFile.D_FrameCount, true) == 0) { m_FrameCount = Params[i].GetValueInt(TSdef.FrameCount); } else if (String.Compare(tag, TSSaveFile.D_CmpFps, true) == 0) { SetFrameRate((TSFps)Params[i].GetValueInt((int)TSdef.FrameRate)); } else if (String.Compare(tag, TSSaveFile.D_SrcWidth, true) == 0) { SrcWidth = Params[i].GetValueInt(TSdef.SrcWidth); } else if (String.Compare(tag, TSSaveFile.D_SrcHeight, true) == 0) { SrcHeight = Params[i].GetValueInt(TSdef.SrcHeight); } else if (String.Compare(tag, TSSaveFile.D_PageSec, true) == 0) { PageSec = (TSPageSec)Params[i].GetValueInt((int)TSdef.PageSec); } else if (String.Compare(tag, TSSaveFile.D_SrcAspect, true) == 0) { SrcAspect = Params[i].GetValueFloat(TSdef.SrcAspect); } else if (String.Compare(tag, TSSaveFile.D_CmpAspect, true) == 0) { CmpAspect = Params[i].GetValueFloat(TSdef.CmpAspect); } else if (String.Compare(tag, TSSaveFile.D_EmptyCell, true) == 0) { EmptyCell = (EmptyCell)Params[i].GetValueInt((int)TSdef.EmptyCellDef); } else if (String.Compare(tag, TSSaveFile.D_remaping, true) == 0) { remaping = Params[i].GetValueBool(TSdef.remaping); } else if (String.Compare(tag, TSSaveFile.D_CREATE_USER, true) == 0) { CREATE_USER = Params[i].Value; } else if (String.Compare(tag, TSSaveFile.D_UPDATE_USER, true) == 0) { UPDATE_USER = Params[i].Value; } else if (String.Compare(tag, TSSaveFile.D_CREATE_TIME, true) == 0) { string s = Params[i].Value; if (DateTime.TryParse(s, out CREATE_TIME) == false) { CREATE_TIME = new DateTime(1963, 9, 9); } } else if (String.Compare(tag, TSSaveFile.D_UPDATE_TIME, true) == 0) { string s = Params[i].Value; if (DateTime.TryParse(s, out UPDATE_TIME) == false) { UPDATE_TIME = new DateTime(1963, 9, 9); } } else if (String.Compare(tag, TSSaveFile.D_TITLE, true) == 0) { TITLE = Params[i].Value; } else if (String.Compare(tag, TSSaveFile.D_SUB_TITLE, true) == 0) { SUB_TITLE = Params[i].Value; } else if (String.Compare(tag, TSSaveFile.D_OPUS, true) == 0) { OPUS = Params[i].Value; } else if (String.Compare(tag, TSSaveFile.D_SCECNE, true) == 0) { SCECNE = Params[i].Value; } else if (String.Compare(tag, TSSaveFile.D_CUT, true) == 0) { CUT = Params[i].Value; } } SetSize(m_CellCount, m_FrameCount); }
//---------------------------------------------------------- public void FromParams( ) { for (int i = 0; i < Params.Count; i++) { string tag = Params[i].Tag; if (String.Compare(tag, TSSaveFile.D_LayerCount, true) == 0) { m_CellCount = Params[i].GetValueInt(TSdef.CellCount); } else if (String.Compare(tag, TSSaveFile.D_FrameCount, true) == 0) { m_FrameCount = Params[i].GetValueInt(TSdef.FrameCount); } else if (String.Compare(tag, TSSaveFile.D_FrameRate, true) == 0) { SetFrameRate((TSFps)Params[i].GetValueInt((int)TSdef.FrameRate)); } else if (String.Compare(tag, TSSaveFile.D_PageSec, true) == 0) { PageSec = (TSPageSec)Params[i].GetValueInt((int)TSdef.PageSec); } else if (String.Compare(tag, TSSaveFile.D_CREATE_USER, true) == 0) { CREATE_USER = Params[i].Value; } else if (String.Compare(tag, TSSaveFile.D_UPDATE_USER, true) == 0) { UPDATE_USER = Params[i].Value; } else if (String.Compare(tag, TSSaveFile.D_CREATE_TIME, true) == 0) { string s = Params[i].Value; if (DateTime.TryParse(s, out CREATE_TIME) == false) { CREATE_TIME = new DateTime(1963, 9, 9); } } else if (String.Compare(tag, TSSaveFile.D_UPDATE_TIME, true) == 0) { string s = Params[i].Value; if (DateTime.TryParse(s, out UPDATE_TIME) == false) { UPDATE_TIME = new DateTime(1963, 9, 9); } } else if (String.Compare(tag, TSSaveFile.D_TITLE, true) == 0) { TITLE = Params[i].Value; } else if (String.Compare(tag, TSSaveFile.D_SUB_TITLE, true) == 0) { SUB_TITLE = Params[i].Value; } else if (String.Compare(tag, TSSaveFile.D_OPUS, true) == 0) { OPUS = Params[i].Value; } else if (String.Compare(tag, TSSaveFile.D_SCECNE, true) == 0) { SCECNE = Params[i].Value; } else if (String.Compare(tag, TSSaveFile.D_CUT, true) == 0) { CUT = Params[i].Value; } else if (String.Compare(tag, TSSaveFile.D_CAMPANY_NAME, true) == 0) { CAMPANY_NAME = Params[i].Value; } } SetSize(m_CellCount, m_FrameCount); }