Esempio n. 1
0
        private void GridPhysicalPerson_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            if (this.freg == null)
            {
                this.freg = new FrmRegistration();
            }

            this.freg.option_clear = 1;
            this.freg.SetPhysicalPerson(Int32.Parse(this.GridPhysicalPerson.SelectedRows[0].Cells[0].Value.ToString()), this.GridPhysicalPerson.SelectedRows[0].Cells[1].Value.ToString(), this.GridPhysicalPerson.SelectedRows[0].Cells[2].Value.ToString(), Decimal.Parse(this.GridPhysicalPerson.SelectedRows[0].Cells[3].Value.ToString()), DateTime.Parse(this.GridPhysicalPerson.SelectedRows[0].Cells[4].Value.ToString()), this.GridPhysicalPerson.SelectedRows[0].Cells[5].Value.ToString()[0], this);
            this.Visible = false;

            if (!this.freg.Visible)
            {
                this.freg.ShowDialog(this);
            }
        }
        private void registrationToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            FrmRegistration frm = new FrmRegistration();

            frm.ShowDialog(this);
        }
Esempio n. 3
0
 public FrmSearch(FrmRegistration freg)
 {
     InitializeComponent();
     this.freg = freg;
 }