示例#1
0
        public void DeleteHardwareItem(HardwareItem hardwareitemToDelete)
        {
            itemsBaza db1 = new itemsBaza();

            db1.ReadItems();

            using (SQLiteCommand com = new SQLiteCommand(con))
            {
                com.CommandText = "DELETE FROM hardware_items WHERE (itemID ='" + hardwareitemToDelete.itemID + "');";

                com.ExecuteNonQuery();
                com.Dispose();
            }
        }
示例#2
0
        public void DeleteMonitor(Monitor monitorToDelete)
        {
            itemsBaza db1 = new itemsBaza();

            db1.ReadItems();

            using (SQLiteCommand com = new SQLiteCommand(con))
            {
                com.CommandText = "DELETE FROM monitor_items WHERE (itemID ='" + monitorToDelete.itemID + "');";

                com.ExecuteNonQuery();
                com.Dispose();
            }
        }