Beispiel #1
0
        public void addRevenue()
        {
            AddNewRevenueUI addNewRevenueUI = new AddNewRevenueUI(0);

            addNewRevenueUI.Owner = this;
            addNewRevenueUI.ShowDialog();
        }
Beispiel #2
0
        public void modifyRevenue()
        {
            int  i     = dataGridView.CurrentRow.Index;
            long index = Convert.ToInt32(dataGridView.Rows[i].Cells[0].Value);

            if (index > 0)
            {
                AddNewRevenueUI addNewRevenueUI = new AddNewRevenueUI(index);
                addNewRevenueUI.Owner = this;
                addNewRevenueUI.ShowDialog();
            }
        }