private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e)
        {
            var senderGrid = (DataGridView)sender;

            if (senderGrid.Columns[e.ColumnIndex] is DataGridViewButtonColumn && e.RowIndex >= 0)
            {
                frm_item_lookup _item_list = new frm_item_lookup(this);
                _item_list.ShowDialog();
            }
            else if (senderGrid.Columns[e.ColumnIndex] is DataGridViewTextBoxColumn && e.RowIndex >= 0)
            {
            }
        }
 public frm_set_price_and_quantity(frm_add_new_item new_item, frm_item_lookup item_lookup)
 {
     InitializeComponent();
     _item_lookup = item_lookup;
     _new_item    = new_item;
 }
        private void btn_add_item_Click(object sender, EventArgs e)
        {
            frm_item_lookup _item_list = new frm_item_lookup(this);

            _item_list.ShowDialog();
        }
Beispiel #4
0
 public frm_add_item_details(frm_item_lookup item_lookup)
 {
     InitializeComponent();
     this._item_lookup = item_lookup;
 }