Ejemplo n.º 1
0
        private void addContractsBtn_Click(object sender, EventArgs e)
        {
            ContractActions contractOp = new ContractActions();

            contractOp.Text = "Create";
            contractOp.ShowDialog();
            GetContractData();
        }
Ejemplo n.º 2
0
        private void editContractsBtn_Click(object sender, EventArgs e)
        {
            try
            {
                int             contractNum = Convert.ToInt32(contractsGridView.SelectedRows[0].Cells[0].Value.ToString());
                ContractActions contractOP  = new ContractActions();
                contractOP.Text = "Edit";
                contractOP.EditContract(contractNum);

                contractOP.ShowDialog();
                GetContractData();
            }
            catch
            { }
        }