Advertisement
tolikpunkoff

no optimised save/load example

May 12th, 2018
482
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.26 KB | None | 0 0
  1. Load
  2. TaskName = dr["Name"].ToString() ;
  3. StartDateTime = dr["StartDateTime"].ToString();
  4. NextDateTime = dr["NextDateTime"].ToString();
  5. TaskTimeType = (TimeType)dr["TimeType"];
  6. TaskActionType = (ActionType)dr["ActionType"] ;
  7. MessageText = dr["MessageText"].ToString();
  8. ProgramPath = dr["ProgramPath"].ToString();
  9. ProgramHide = (bool)dr["ProgramHide"];
  10. ProgramParameters = dr["ProgramParameters"].ToString();
  11. TaskSoundType = (SoundType)dr["SoundType"];
  12. SoundPath = dr["SoundPath"].ToString();
  13. TaskRemindType = (RemindType)dr["RemindType"];
  14. Remind = (int)dr["Remind"];
  15. Active = (bool)dr["Active"];
  16. Log = dr["Log"].ToString();
  17. N = (int)dr["N"];
  18. LastRun = dr["LastRun"].ToString();
  19. Overdue = Convert.ToBoolean(dr["Overdue"]);
  20.  
  21. Save
  22. dr["Name"] = TaskName;
  23. dr["StartDateTime"] = StartDateTime;
  24. dr["NextDateTime"] = NextDateTime;
  25. dr["TimeType"] = TaskTimeType;
  26. dr["ActionType"] = TaskActionType;
  27. dr["MessageText"] = MessageText;
  28. dr["ProgramPath"] = ProgramPath;
  29. dr["ProgramParameters"] = ProgramParameters;
  30. dr["ProgramHide"] = ProgramHide;
  31. dr["SoundType"] = TaskSoundType;
  32. dr["SoundPath"] = SoundPath;
  33. dr["RemindType"] = TaskRemindType;
  34. dr["Remind"] = Remind;
  35. dr["Active"] = Active;
  36. dr["Log"] = Log;
  37. dr["N"] = N;
  38. dr["LastRun"] = LastRun;
  39. dr["Overdue"] = Overdue;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement