示例#1
0
 //FIND ITEM
 private void numericUpDown1_ValueChanged(object sender, EventArgs e)
 {
     currentItem = cc.FindItem(Convert.ToInt32(numericUpDown1.Value));
     if (currentItem != null)
     {
         richTextBox_Desc.Text = currentItem.GetDesc();
         textBox_SalesPrice.Text = currentItem.GetSalesPrice().ToString();
         textBox_shopsPrice.Text = currentItem.GetShopsPrice().ToString();
     }
     else
     {
         richTextBox_Desc.Text = "";
         textBox_SalesPrice.Text = "";
         textBox_shopsPrice.Text = "";
     }
 }