示例#1
0
        public void DeleteCommander(EDCommander cmdr)
        {
            using (SQLiteConnectionUser conn = new SQLiteConnectionUser())
            {
                using (DbCommand cmd = conn.CreateCommand("UPDATE Commanders SET Deleted = 1 WHERE Id = @Id"))
                {
                    cmd.AddParameterWithValue("@Id", cmdr.Nr);
                    cmd.ExecuteNonQuery();
                }
            }

            LoadCommanders();       // refresh in-memory copy
        }
示例#2
0
        public void DeleteCommander(EDCommander cmdr)
        {
            SQLiteDBClass.PutSettingBool("EDCommanderDeleted" + cmdr.Nr.ToString(), true);

            LoadCommanders();
        }
示例#3
0
 private void comboBoxCommanders_SelectedIndexChanged(object sender, EventArgs e)
 {
     selectedCommander = (EDCommander)comboBoxCommanders.SelectedItem;
 }
示例#4
0
 private void comboBoxCommanders_SelectedIndexChanged(object sender, EventArgs e)
 {
     selectedCommander = (EDCommander)comboBoxCommanders.SelectedItem;
 }