public FormPrihodnayaNakadnayaEdit(int item_id, int p_id, FormPrihodnayaNaklodnaya f_parent) { InitializeComponent(); itemId = item_id; pId = p_id; fParent = f_parent; LoadValues(); }
public FormPrihodnayaNakadnayaEdit(int item_id,int p_id, FormPrihodnayaNaklodnaya f_parent) { InitializeComponent(); itemId = item_id; pId = p_id; fParent = f_parent; LoadValues(); }
private void buttonOpen_Click(object sender, EventArgs e) { if (dataGridViewList.SelectedRows.Count == 1) { Int16 id = 0; Int16.TryParse(dataGridViewList.SelectedRows[0].Cells["id"].Value.ToString(), out id); FormPrihodnayaNaklodnaya f = new FormPrihodnayaNaklodnaya(id, this); f.Show(); } else { if (dataGridViewList.SelectedRows.Count > 1) { MessageBox.Show("Выберите только одну запись"); } else { MessageBox.Show("Выберите одну запись"); } } }
private void buttonAdd_Click(object sender, EventArgs e) { FormPrihodnayaNaklodnaya f = new FormPrihodnayaNaklodnaya(0,this); f.Show(); }
private void buttonAdd_Click(object sender, EventArgs e) { FormPrihodnayaNaklodnaya f = new FormPrihodnayaNaklodnaya(0, this); f.Show(); }