Ignore:
Timestamp:
Jan 23, 2011, 8:00:56 AM (13 years ago)
Author:
Sam Habiel
Message:

CalendarGrid: Handling for mouse scroll wheel added.
CGAppointments: Now supports Deep Cloning with Clone().
Updated Exes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Scheduling/trunk/cs/bsdx0200GUISourceCode/CGAppointments.cs

    r1073 r1075  
    5757        }
    5858
    59         //smh test
    60         //one problem: Hashtable is a shallow copy.
    61         //so it shouldn't work. But let's see.
     59 
    6260        public object Clone()
    6361        {
    64             CGAppointments appts = new CGAppointments();
    65             appts.apptList = (Hashtable)apptList.Clone();
    66             return appts;
     62            CGAppointments newappts = new CGAppointments();
     63            //appts.apptList = (Hashtable)apptList.Clone();
     64            foreach (DictionaryEntry d in this.apptList)
     65            {
     66                newappts.apptList.Add(d.Key, d.Value);
     67            }
     68           
     69            return newappts;
    6770        }
    6871    }
Note: See TracChangeset for help on using the changeset viewer.