Exemplo n.º 1
0
        /// <summary>
        /// Редактировать товар
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void Button3_Click(object sender, EventArgs e)
        {
            var         goods       = (Goods)this.listBox1.SelectedItem;
            GoodsEditor goodsEditor = new GoodsEditor(this, goods);

            goodsEditor.Show();
        }
Exemplo n.º 2
0
        /// <summary>
        /// Добавить товар
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void Button1_Click(object sender, EventArgs e)
        {
            GoodsEditor goodsEditor = new GoodsEditor(this, goods);

            goodsEditor.Show();
        }