public static void InsertInteraction(Interaction_Log i) { naturenet_dataclassDataContext db = new naturenet_dataclassDataContext(); db.Interaction_Logs.InsertOnSubmit(i); try { db.SubmitChanges(); } catch (Exception e) { log.WriteErrorLog(e); } }
public static void WriteInteractionLog(int type, string details, double x, double y) { Interaction_Log i = new Interaction_Log(); i.date = DateTime.Now; i.details = details; i.type = type; i.touch_id = -1; i.touch_x = x; i.touch_y = y; database_manager.InsertInteraction(i); }
public static void WriteInteractionLog(int type, string details, System.Windows.Input.TouchDevice t) { Interaction_Log i = new Interaction_Log(); i.date = DateTime.Now;i.details = details;i.type = type; if (t != null) { i.touch_id = t.Id; i.touch_x = t.GetTouchPoint(null).Position.X; i.touch_y = t.GetTouchPoint(null).Position.Y; } else { i.touch_id = -1; i.touch_x = -1; i.touch_y = -1; } database_manager.InsertInteraction(i); }
partial void DeleteInteraction_Log(Interaction_Log instance);
partial void UpdateInteraction_Log(Interaction_Log instance);
partial void InsertInteraction_Log(Interaction_Log instance);
private void detach_Interaction_Logs(Interaction_Log entity) { this.SendPropertyChanging(); entity.Interaction_Type = null; }