private void addStripButton_Click(object sender, EventArgs e) { SvodVedomostEditDocumentForm tmpform = new SvodVedomostEditDocumentForm(_connection, _operator, _org); tmpform.Owner = this; tmpform.RepYear = (int)yearBox.Value; DialogResult dRes = tmpform.ShowDialog(); if (dRes == DialogResult.OK) { RefillData((int)yearBox.Value); } }
private void editStripButton_Click(object sender, EventArgs e) { DataRowView curRow = _mergeBS.Current as DataRowView; if (curRow == null) { MainForm.ShowInfoMessage("Необходимо выбрать запись!", "Ошибка выбора сводной"); return; } SvodVedomostEditDocumentForm tmpform = new SvodVedomostEditDocumentForm(_connection, _operator, _org, curRow.Row); tmpform.Owner = this; DialogResult dRes = tmpform.ShowDialog(); if (dRes == DialogResult.OK) { RefillData((int)yearBox.Value); } }