Esempio n. 1
0
        private void button4_Click(object sender, EventArgs e)
        {
            NewItem newItem = new NewItem();

            newItem.Show();
            newItem.AddedItem += this.OnCreatedItem;
        }
Esempio n. 2
0
        private void BTN_Edit_Click(object sender, EventArgs e)
        {
            NewItem newItem = new NewItem();

            newItem.TXT_Name.Text            = TXT_Name.Text;
            newItem.TXT_referenceNumber.Text = TXT_referenceNumber.Text;
            newItem.TXT_Price.Text           = TXT_Price.Text;
            newItem.TXT_Unit.Text            = TXT_Unit.Text;
            newItem.editMode    = true;
            newItem.EditedItem += Refresh;

            newItem.Show();
        }