Ejemplo n.º 1
0
        public Int64 InsertTableTaskList(string filename, string name, Int32 minute)
        {
            ListViewFile lvf = new ListViewFile();

            lvf.CreateDate  = new DateTime(2018, 1, 1, 9, 0, 0, DateTimeKind.Utc).ToString("yyyy-MM-dd HH:mm:ss"); //dummy
            lvf.Description = "description";
            lvf.DueDate     = new DateTime(2019, 1, 1, 9, minute, 0, DateTimeKind.Utc).ToString("yyyy-MM-dd HH:mm:ss");
            lvf.Id          = 0; //dummy
            lvf.Memo        = "memo";
            lvf.Name        = name;
            lvf.Priority    = "";
            lvf.Status      = "Active";
            lvf.WorkHolder  = Path.GetTempPath();

            string path = Path.GetTempPath() + "\\" + filename;

            return(SQLiteClass.ExecuteInsertTable(path, lvf));
        }