Example #1
0
        /**
        * Create a new roadmap
        **/
        public bool CreateRoadMap(string name, string description, string userid )
        {
            mDatabase.connect();
            bool toReturn = false;

            if (mDatabase.executewrite("INSERT INTO [dbo].[RoadMap] ( Name, Description, Timestamp, UserID ) VALUES ( '" + name + "', '" +  description + "', GETDATE(), '" + userid + "')"))
            {
                //create a new timeline
                RoadMap map = new RoadMap(name);
                map.CreateTimeLine();

                toReturn = true;
            }
            mDatabase.close();

            return toReturn;
        }