Exemplo n.º 1
0
        public virtual object Clone()
        {
            DataQuery obj = new DataQuery();

            obj.SetOwner(_owner);
            obj._qry = _qry.Clone() as EasyQuery;
            return(obj);
        }
        public object Clone()
        {
            DTSQuery obj = new DTSQuery();

            obj.SetOwner(_owner);
            obj._qry        = _qry.Clone() as EasyQuery;
            obj.dtTimestamp = dtTimestamp;
            return(obj);
        }
Exemplo n.º 3
0
        public void LoadData(EasyQuery qry)
        {
            query  = (EasyQuery)qry.Clone();
            fields = query.Fields;
            ListViewItem v;

            for (int i = 0; i < fields.Count; i++)
            {
                v = new ListViewItem(fields[i].Name);
                v.SubItems.Add(EPField.TypeString(fields[i].OleDbType));
                v.SubItems.Add(fields[i].IsIdentity.ToString());
                v.SubItems.Add(fields[i].IsFile.ToString());
                v.SubItems.Add(fields[i].ColumnWidth.ToString());
                v.SubItems.Add(fields[i].Visible.ToString());
                v.SubItems.Add(fields[i].ReadOnly.ToString());
                listView1.Items.Add(v);
            }
            if (listView1.Items.Count > 0)
            {
                listView1.Items[0].Selected = true;
            }
        }