Esempio n. 1
0
        public int Compare(Object x, Object y)
        {
            clsWork  lcWorkX = (clsWork)x;
            clsWork  lcWorkY = (clsWork)y;
            DateTime lcDateX = lcWorkX.GetDate();
            DateTime lcDateY = lcWorkY.GetDate();

            return(lcDateX.CompareTo(lcDateY));
        }
        public int Compare(Object x, Object y)
        {
            clsWork workClassX = (clsWork)x;
            clsWork workClassY = (clsWork)y;
            string  lcNameX    = workClassX.GetName();
            string  lcNameY    = workClassY.GetName();

            return(lcNameX.CompareTo(lcNameY));
        }
Esempio n. 3
0
        public void AddWork()
        {
            clsWork lcWork = clsWork.NewWork();

            if (lcWork != null)
            {
                Add(lcWork);
            }
        }
Esempio n. 4
0
 public void EditWork(int prIndex)
 {
     if (prIndex >= 0 && prIndex < this.Count)
     {
         clsWork lcWork = (clsWork)this[prIndex];
         lcWork.EditDetails();
     }
     else
     {
         MessageBox.Show("Sorry no work selected #" + Convert.ToString(prIndex));
     }
 }
Esempio n. 5
0
 public void SetDetails(clsWork prWork)
 {
     _Work = prWork;
     updateForm();
     ShowDialog();
 }