Example #1
0
        private void GridPerson_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            if (this.freg == null)
            {
                this.freg = new FrmRegistration();
            }

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

            if (!this.freg.Visible)
            {
                this.freg.ShowDialog(this);
            }
        }
Example #2
0
 public FrmSearch(FrmRegistration freg)
 {
     InitializeComponent();
     this.freg = freg;
 }