Beispiel #1
0
        private void dataGridViewRequired_CellClick(object sender, DataGridViewCellEventArgs e)
        {
            formTransactionNew transaction = new formTransactionNew(dataGridViewInventory.Rows[e.RowIndex].Cells["name"].Value.ToString() + " " + dataGridViewInventory.Rows[e.RowIndex].Cells["dosage"].Value.ToString(), int.Parse(dataGridViewInventory.Rows[e.RowIndex].Cells["minimum_quantity"].Value.ToString()));

            transaction.referenceToMain = this;
            transaction.ShowDialog();
        }
Beispiel #2
0
        private void buttonTransactionNew_Click(object sender, EventArgs e)
        {
            var transaction = new formTransactionNew();

            transaction.referenceToMenu = this;
            transaction.ShowDialog();
        }