示例#1
0
        private void button_addLV_Click(object sender, EventArgs e)
        {
            EditLV editLV = new EditLV(dbConnection);

            if (editLV.ShowDialog() == DialogResult.OK)
            {
                refreshLinguisticTable();
            }
        }
示例#2
0
 private void button_editLV_Click(object sender, EventArgs e)
 {
     if (dataGridViewLV.SelectedRows.Count > 0)
     {
         LinguisticVariable lv     = dbConnection.Get <LinguisticVariable>(dataGridViewLV.SelectedRows[0].Cells["LVId"].Value);
         EditLV             editLV = new EditLV(dbConnection, lv);
         if (editLV.ShowDialog() == DialogResult.OK)
         {
             refreshLinguisticTable();
         }
     }
     else
     {
         MessageBox.Show("Необходимо выбрать лингвистическую переменную", "Ошибка", MessageBoxButtons.OK, MessageBoxIcon.Warning);
     }
 }