Exemple #1
0
 public void CopyTo(CCfgtype cfg)
 {
     cfg.XMetric = this.XMetric;
     cfg.YMetric = this.YMetric;
     cfg.XLate_X = this.XLate_X;
     cfg.XLate_Y = this.XLate_Y;
     cfg.xfa     = this.xfa;
     cfg.sl      = this.sl;
     cfg.sw      = this.sw;
     cfg.hs      = this.hs;
     cfg.bm      = this.bm;
     cfg.rm      = this.rm;
     cfg.tm      = this.tm;
     cfg.lm      = this.lm;
 }
Exemple #2
0
        public static CCfgtype FromStream(System.IO.BinaryReader br)
        {
            CCfgtype cfg = new CCfgtype();

            cfg.XMetric = br.ReadDouble();
            cfg.YMetric = br.ReadDouble();
            cfg.XLate_X = br.ReadDouble();
            cfg.XLate_Y = br.ReadDouble();
            cfg.xfa     = br.ReadDouble();
            cfg.sl      = br.ReadDouble();
            cfg.sw      = br.ReadDouble();
            cfg.hs      = br.ReadDouble();
            cfg.bm      = br.ReadDouble();
            cfg.rm      = br.ReadDouble();
            cfg.tm      = br.ReadDouble();
            cfg.lm      = br.ReadDouble();

            return(cfg);
        }