Exemple #1
0
        private void addStripButton_Click(object sender, EventArgs e)
        {
            EditPersonForm tmpform = new EditPersonForm(_connection, _operator.nameVal, _org.idVal);

            tmpform.FormClosed += new FormClosedEventHandler(EditPersonForm_FormClosed);
            tmpform.Owner       = this;
            tmpform.Show();
        }
Exemple #2
0
        private void editStripButton_Click(object sender, EventArgs e)
        {
            DataRowView person = _personBS.Current as DataRowView;

            if (person == null)
            {
                MainForm.ShowInfoMessage("Необходимо выбрать запись!", "Ошибка выбора анкеты");
                return;
            }
            long           personId = (long)person[PersonInfo.id];
            EditPersonForm tmpform  = new EditPersonForm(_connection, _operator.nameVal, _org.idVal);

            tmpform.FormClosed += new FormClosedEventHandler(EditPersonForm_FormClosed);
            tmpform.Owner       = this;
            tmpform.Show();

            tmpform.PersonId = personId;
        }