public override bool Load()
        {
            bool        ret    = true;
            List <long> idlist = new List <long>();

            if (Common.Conn == null)
            {
                Common.Conn = new SQLiteConnection(Common.ConnectionString);
                Common.Conn.Open();
            }
            SQLiteDataReader myReader  = null;
            SQLiteCommand    myCommand = new SQLiteCommand();

            try
            {
                myReader = null;
                myCommand.CommandText = @"SELECT * FROM [tblBlockAlarmStatusText] ;";
                myCommand.Connection  = Common.Conn;
                myReader = myCommand.ExecuteReader();
                while (myReader.Read())
                {
                    idlist.Add(myReader.GetInt64(myReader.GetOrdinal("ID")));
                }

                myReader.Close();
                myCommand.Dispose();
                int count = idlist.Count;
                foreach (long id in idlist)// (int i = 0; i < count ; i++)
                {
                    tblBlockAlarmStatusText tblblockalarmstatustext = new tblBlockAlarmStatusText();
                    tblblockalarmstatustext.ID = id;// idlist[i];
                    tblblockalarmstatustext.m_SolutionID_tblSolution = this.m_SolutionID_tblSolution;
                    tblblockalarmstatustext.Select();

                    this.Add(tblblockalarmstatustext);
                }
            }
            catch (SQLiteException ae)
            {
                System.Windows.Forms.MessageBox.Show(ae.Message);
                return(false);
            }



            return(ret);
        }
 public bool Contains(tblBlockAlarmStatusText item)
 {
     return(List.Contains(item));
 }
 public void Insert(int index, tblBlockAlarmStatusText item)
 {
     List.Insert(index, item);
     this.OntblBlockAlarmStatusTextChanged(EventArgs.Empty);
 }
 public int IndexOf(tblBlockAlarmStatusText item)
 {
     return(List.IndexOf(item));
 }
 public void Remove(tblBlockAlarmStatusText item)
 {
     List.Remove(item);
     this.OntblBlockAlarmStatusTextChanged(EventArgs.Empty);
 }