/***************** ADD METHODS ********************/

        public bool AddLine(string name)
        {
            var line = new line {
                line_name = name
            };

            try
            {
                db.lines.InsertOnSubmit(line);
                db.SubmitChanges();
                Console.WriteLine("Inserted line Successfully");
                //MainForm.UpdateLists();
                return(true);
            }
            catch (Exception eX)
            {
                Console.WriteLine("Failed to insert line : " + eX);
                return(false);
            }
        }
 partial void Deleteline(line instance);
 partial void Updateline(line instance);
 partial void Insertline(line instance);