Example #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
        }
Example #2
0
        public void DeleteCommander(EDCommander cmdr)
        {
            SQLiteDBClass.PutSettingBool("EDCommanderDeleted" + cmdr.Nr.ToString(), true);

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