Beispiel #1
0
        private void button_addnew_Click(object sender, EventArgs e)
        {
            Form_Editor f = new Form_Editor(null);
            if (f.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {

                addPLUtolist(f.plu);
            }
        }
Beispiel #2
0
 private void editToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (loc.Item != null)
     {
         Form_Editor f = new Form_Editor((PLUcommon)loc.Item.Tag);
         if (f.ShowDialog() == System.Windows.Forms.DialogResult.OK)
         {
              PLUcommon p =(PLUcommon)loc.Item.Tag;
             loc.Item.SubItems[1].Text = p.description;
             loc.Item.SubItems[2].Text = (String.Format("£{0:0.00}", (double)p.price / 100));
         }
     }
 }