예제 #1
0
        private void AddData()
        {
            AddFlaw addFlaw = new AddFlaw();

            addFlaw.ShowDialog();
            LoadData();
        }
예제 #2
0
        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();
        }