Esempio n. 1
0
        public History()
        {
            InitializeComponent();
            sqlOperation = new SqlOp();
            string Query = "SELECT * FROM Events";

            //true=====select data from database and assign it in 2 lists: type & operator
            sqlOperation.SelectFromDB(Query, true);
            cbType.DataSource     = sqlOperation.type;
            cbOperator.DataSource = sqlOperation.Operator;
        }