private void buttonX1_Click(object sender, EventArgs e) { if (checkControls(negu) & opgz_check() & (CheckPrg())) { ToData(); rep.InsertOrUpdate(uData); this.DialogResult = DialogResult.OK; } }
private void buttonX1_Click(object sender, EventArgs e) { org.name_ru = textBoxX1.Text; org.name_kz = textBoxX2.Text; org.BIN = TryParseLong(textBoxX4.Text); org.KodGU = TryParseLong(textBoxX5.Text); org.r_bud_type = (r_bud_type)comboBox1.SelectedItem; org.Negu = checkBoxX1.Checked; rep.InsertOrUpdate(org); this.DialogResult = DialogResult.OK; }