Ejemplo n.º 1
0
        private void showFinance()
        {
            var financeModel = new FinanceModel()
            {
                id         = Guid.Parse(selectedRow.Cells[0].Value.ToString()),
                cashOnHand = double.Parse(selectedRow.Cells[5].Value.ToString()),
                moneyIn    = double.Parse(selectedRow.Cells[3].Value.ToString()),
                moneyOut   = double.Parse(selectedRow.Cells[4].Value.ToString()),
                jobDate    = DateTime.Parse(selectedRow.Cells[2].Value.ToString()),
            };

            AddFinance frm = new AddFinance(this, financeModel);

            frm.ShowDialog();
        }
Ejemplo n.º 2
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            AddFinance frm = new AddFinance(this);

            frm.ShowDialog();
        }