public override void LoadFromStream(SerializationInfo info, int orderNumber) { this.r2o_qtyper = (int)info.GetValue(String.Format(CultureInfo.InvariantCulture, "{0}{1}", entryr2oqtyper, orderNumber), typeof(int)); this.r2o_restype = (RESTYPE)info.GetValue(String.Format(CultureInfo.InvariantCulture, "{0}{1}", entryr2orestype, orderNumber), typeof(RESTYPE)); this.r2o_altresource = (string)info.GetValue(String.Format(CultureInfo.InvariantCulture, "{0}{1}", entryr2oaltresource, orderNumber), typeof(string)); this.r2o_altpriority = (int)info.GetValue(String.Format(CultureInfo.InvariantCulture, "{0}{1}", entryr2oaltpriority, orderNumber), typeof(int)); this.r2o_altresources = (ArrayList)info.GetValue(String.Format(CultureInfo.InvariantCulture, "{0}{1}", entryr2oaltresources, orderNumber), typeof(ArrayList)); Point ctct = (Point)info.GetValue(String.Format(CultureInfo.InvariantCulture, "{0}{1}", entryctct, orderNumber), typeof(Point)); Point ltct = (Point)info.GetValue(String.Format(CultureInfo.InvariantCulture, "{0}{1}", entryltct, orderNumber), typeof(Point)); Point rtct = (Point)info.GetValue(String.Format(CultureInfo.InvariantCulture, "{0}{1}", entryrtct, orderNumber), typeof(Point)); int distype = (int)info.GetValue(String.Format(CultureInfo.InvariantCulture, "{0}{1}", entrydistype, orderNumber), typeof(int)); DRWObj.CONPONT lttp = (DRWObj.CONPONT)info.GetValue(String.Format(CultureInfo.InvariantCulture, "{0}{1}", entrylttp, orderNumber), typeof(DRWObj.CONPONT)); DRWObj.CONPONT rttp = (DRWObj.CONPONT)info.GetValue(String.Format(CultureInfo.InvariantCulture, "{0}{1}", entryrttp, orderNumber), typeof(DRWObj.CONPONT)); this.Uplist = new ArrayList(); this.Dnlist = new ArrayList(); this.Drwobj = new DRWCon(ltct, rtct, DRWObj.CONPONT.LtCt, DRWObj.CONPONT.RtCt, this); this.Drwobj.Stype = lttp; this.Drwobj.Etype = rttp; this.Drwobj.Distype = distype; base.LoadFromStream(info, orderNumber); }
public override void Init(int n) { this.Seq = n; this.Uplist = new ArrayList(); this.Dnlist = new ArrayList(); r2o_altresources = new ArrayList(); r2o_qtyper = 1; r2o_restype = RESTYPE.NULL; r2o_altresource = ""; r2o_altpriority = 1; }
public Res(Object r, RESTYPE tp) { m_Resource = r; m_Type = tp; }