Exemplo 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));
        }
Exemplo n.º 2
0
        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));
        }
Exemplo n.º 3
0
        public void AddWork()
        {
            clsWork lcWork = clsWork.NewWork();

            if (lcWork != null)
            {
                Add(lcWork);
            }
        }
Exemplo 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));
     }
 }
Exemplo n.º 5
0
 public void SetDetails(clsWork prWork)
 {
     _Work = prWork;
     updateForm();
     ShowDialog();
 }