예제 #1
0
 // Simple constructor
 public Field(string name_val, string displayName_val, string desc_val, int rowAddress_val, SnapView sv)
 {
     name        = name_val;
     displayName = displayName_val;
     desc        = desc_val;
     rowAddress  = rowAddress_val;
     sView       = sv;
 }//Field
예제 #2
0
        // ***************
        // Constructors
        // ***************

        // Copy constructor to Clone this snapview only used by FootyStatInit to save a copy right at the start.
        public SnapView(SnapViewDirector svd, SnapView previous_sv) : base(svd)
        {
            // Copy the table (DEEP COPY) because the table will be different for all users.
            table = new List <SVRow>(100);
            foreach (SVRow row in previous_sv.table)
            {
                table.Add(row);
            }

            // Shallow copy the dict because this is the same for all.
            dict = previous_sv.dict;

            // isValid default to true for snapview (different to actions)
            isValid = true;
        }