public override bool Load() { bool ret = true; try { if (Common.Conn == null) { Common.Conn = new SQLiteConnection(Common.ConnectionString); Common.Conn.Open(); } SQLiteDataReader myReader = null; SQLiteCommand myCommand = new SQLiteCommand(); myReader = null; myCommand.CommandText = @"SELECT * FROM [tblEWSUser] "; myCommand.Connection = Common.Conn; myReader = myCommand.ExecuteReader(); while (myReader.Read()) { tblEWSUser tblewsuser = new tblEWSUser(); tblewsuser.m_SolutionID_tblSolution = this.m_SolutionID_tblSolution; tblewsuser.AddFromRecordSet(myReader); this.Add(tblewsuser); } myReader.Close(); myCommand.Dispose(); } catch (SQLiteException ae) { System.Windows.Forms.MessageBox.Show(ae.Message); return(false); } return(ret); }
public bool Contains(tblEWSUser item) { return(List.Contains(item)); }
public int IndexOf(tblEWSUser item) { return(List.IndexOf(item)); }
public void Insert(int index, tblEWSUser item) { List.Insert(index, item); this.OntblEWSUserChanged(EventArgs.Empty); }
public void Remove(tblEWSUser item) { List.Remove(item); this.OntblEWSUserChanged(EventArgs.Empty); }
public void Add(tblEWSUser item) { List.Add(item); this.OntblEWSUserChanged(EventArgs.Empty); }