Example #1
0
        private void openSupplyButton_Click(object sender, EventArgs e)
        {
            var id           = GetSelectedIdFromTable(supplyTable);
            var supplyDialog = new SupplyDialog(DialogState.Open, id);

            supplyDialog.ShowDialog(this);
        }
Example #2
0
        private void editSupplyButton_Click(object sender, EventArgs e)
        {
            var id           = GetSelectedIdFromTable(supplyTable);
            var supplyDialog = new SupplyDialog(DialogState.Edit, id);

            supplyDialog.ShowDialog(this);
            updateSuppliesTable();
        }