Example #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            searchContracts frm = new searchContracts(user, access);

            frm.ShowDialog();
            if (frm.DialogResult == DialogResult.Yes)
            {
                ContractForm frm2 = new ContractForm(frm.tname, frm.tver, frm.user, frm.contractPerson, frm.date);
                frm.Close();
                frm2.ShowDialog();
                frm2.Close();
            }
        }
Example #2
0
        private void button2_Click(object sender, EventArgs e)
        {
            ContractSelect frm = new ContractSelect();

            frm.ShowDialog();
            if (frm.DialogResult == DialogResult.Yes)
            {
                ContractForm frm2 = new ContractForm(frm.SelectedContract, frm.Selectedversion, user);
                frm.Close();
                frm2.ShowDialog();
                frm2.Close();
            }
        }