private void AddData() { AddFlaw addFlaw = new AddFlaw(); addFlaw.ShowDialog(); LoadData(); }
private void EditData() { int index = dataGrid.SelectedRows[0].Index; Flaw temp = sql.findFlaw(Int32.Parse(dataGrid.Rows[index].Cells[0].Value.ToString())); AddFlaw addFlaw = new AddFlaw(); addFlaw.changeFlaw(temp); LoadData(); }