Example #1
0
        /// <summary>
        /// Add new product.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void adaugaProdusToolStripMenuItem_Click(object sender, EventArgs e)
        {
            EditProductForm editForm = new EditProductForm(this);

            editForm.ShowDialog();
            this.refreshProductsListView();
        }
Example #2
0
 /// <summary>
 /// Trigger product edit form on doubleclick event.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void listViewProducts_DoubleClick(object sender, EventArgs e)
 {
     if (listViewProducts.SelectedItems.Count == 1)
     {
         ListView.SelectedListViewItemCollection items = listViewProducts.SelectedItems;
         ListViewItem    lvItem   = items[0];
         EditProductForm editForm = new EditProductForm(this, lvItem);
         editForm.ShowDialog();
         this.refreshProductsListView();
     }
 }
Example #3
0
 /// <summary>
 /// Trigger product edit form on doubleclick event.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void listViewProducts_DoubleClick(object sender, EventArgs e)
 {
     if (listViewProducts.SelectedItems.Count == 1)
     {
         ListView.SelectedListViewItemCollection items = listViewProducts.SelectedItems;
         ListViewItem lvItem = items[0];
         EditProductForm editForm = new EditProductForm(this, lvItem);
         editForm.ShowDialog();
         this.refreshProductsListView();
     }
 }
Example #4
0
 /// <summary>
 /// Add new product.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void adaugaProdusToolStripMenuItem_Click(object sender, EventArgs e)
 {
     EditProductForm editForm = new EditProductForm(this);
     editForm.ShowDialog();
     this.refreshProductsListView();
 }