/// <summary> /// reset textboxs every new search to default /// </summary> private void Clear() { MName.Clear(); MSS.Clear(); MEX.Text = ""; MEX.Background = Brushes.White; MEX.Foreground = Brushes.Blue; MPrice.Clear(); MExist.Clear(); MExist.Background = Brushes.White; MWSell.Text = "1"; MType.SelectedIndex = -1; MNotes.Clear(); }
//over rides the toString() //right now when this is called the like and dislikes are not updated properly public override string ToString() { return(mProduct + ": for " + MPrice.ToString("c") + " expires on " + mDate + " Likes:" + Likes + " Dislikes:" + Dislikes); }