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