public bool CompareTag(TSParams.N n) { TSParams p = new TSParams(); return(string.Compare(p.Tag(n), this.tag, true) == 0); }
//---------------------------------------------------------------------- public bool SaveToFile(string path) { if ((tsg == null) || (path == "")) { return(false); } string s = ""; TSParams p = new TSParams(); s += p.Tag(TSParams.N.Left) + " = " + Left.ToString() + "\n"; s += p.Tag(TSParams.N.Top) + " = " + Top.ToString() + "\n"; s += p.Tag(TSParams.N.Height) + " = " + Height.ToString() + "\n"; s += p.Tag(TSParams.N.CellCount) + " = " + tsg.tsd.CellCount.ToString() + "\n"; s += p.Tag(TSParams.N.FrameCount) + " = " + tsg.tsd.FrameCount.ToString() + "\n"; s += p.Tag(TSParams.N.CellWidth) + " = " + tsg.tsd.CellWidth.ToString() + "\n"; s += p.Tag(TSParams.N.CellHeight) + " = " + tsg.tsd.CellHeight.ToString() + "\n"; s += p.Tag(TSParams.N.FrameWidth) + " = " + tsg.tsd.FrameWidth.ToString() + "\n"; s += p.Tag(TSParams.N.MemoWidth) + " = " + tsg.tsd.MemoWidth.ToString() + "\n"; s += p.Tag(TSParams.N.CaptionHeight) + " = " + tsg.tsd.CaptionHeight.ToString() + "\n"; s += p.Tag(TSParams.N.FrameOffset) + " = " + tsg.tsd.FrameOffset.ToString() + "\n"; s += p.Tag(TSParams.N.ZeroStart) + " = " + tsg.tsd.ZeroStart.ToString() + "\n"; s += p.Tag(TSParams.N.FrameDisp) + " = " + ((int)tsg.tsd.FrameDisp).ToString() + "\n"; s += p.Tag(TSParams.N.SrcWidth) + " = " + tsg.tsd.SrcWidth.ToString() + "\n"; s += p.Tag(TSParams.N.SrcHeight) + " = " + tsg.tsd.SrcHeight.ToString() + "\n"; s += p.Tag(TSParams.N.PageSec) + " = " + ((int)tsg.tsd.PageSec).ToString() + "\n"; s += p.Tag(TSParams.N.FrameRate) + " = " + ((int)tsg.tsd.FrameRate).ToString() + "\n"; s += p.Tag(TSParams.N.SrcAspect) + " = " + tsg.tsd.SrcAspect.ToString() + "\n"; s += p.Tag(TSParams.N.CmpAspect) + " = " + tsg.tsd.CmpAspect.ToString() + "\n"; s += p.Tag(TSParams.N.AE_Vaersion) + " = " + tsg.tsd.AE_Vaersion.ToString() + "\n"; s += p.Tag(TSParams.N.EmptyCell) + " = " + ((int)tsg.tsd.EmptyCell).ToString() + "\n"; s += p.Tag(TSParams.N.remaping) + " = " + tsg.tsd.remaping.ToString() + "\n"; s += p.Tag(TSParams.N.AutoInputStart) + " = " + tsg.tsd.AutoInputStart.ToString() + "\n"; s += p.Tag(TSParams.N.AutoInputLast) + " = " + tsg.tsd.AutoInputLast.ToString() + "\n"; s += p.Tag(TSParams.N.AutoInputKoma) + " = " + tsg.tsd.AutoInputKoma.ToString() + "\n"; s += p.Tag(TSParams.N.SecInputMode) + " = " + tsg.tsd.SecInputMode.ToString() + "\n"; s += p.Tag(TSParams.N.LastFrame) + " = " + tsg.tsd.LastFrame.ToString() + "\n"; //書き込み先のテキストファイル System.Text.Encoding enc = System.Text.Encoding.GetEncoding("utf-8"); System.IO.File.WriteAllText(path, s, enc); return(true); }