Exemplo n.º 1
0
        private void Button_Add_Click(object sender, EventArgs e)
        {
            WriteOffSetup writeOffSetup = new WriteOffSetup(ColumnWidthSetting);

            writeOffSetup.ShowDialog();
            WriteOffProducts = writeOffSetup.WriteOffProducts;

            if (WriteOffProducts == null)
            {
                return;
            }

            listView_WriteOff.Items.Clear();


            listWriteOffProducts.Add(WriteOffProducts);

            CreateListViewItem();
        }
Exemplo n.º 2
0
        private void Button_Change_Click(object sender, EventArgs e)
        {
            if (listView_WriteOff.SelectedItems.Count == 0)
            {
                MessageBox.Show("Списание не выбрано", "Информация",
                                MessageBoxButtons.OK, MessageBoxIcon.Information);
                return;
            }

            WriteOffProducts = (WriteOffProducts)listView_WriteOff.SelectedItems[0].Tag;

            WriteOffSetup writeOffSetup = new WriteOffSetup(WriteOffProducts, ColumnWidthSetting);

            writeOffSetup.ShowDialog();
            WriteOffProducts = writeOffSetup.WriteOffProducts;

            listView_WriteOff.Items.Clear();

            CreateListViewItem();
        }