예제 #1
0
        private void FormFields_Load(object sender, EventArgs e)
        {
            if (DesignMode)
            {
                return;
            }

            labDataSource.Text = DataName;

            FieldListClone = FieldList.Clone() as FieldsCollections;

            for (int i = 0; i < FieldList.Count; i++)
            {
                FieldItem temp = FieldListClone[i];
                LB_fldList.Items.Add(temp.DataTableName + "->" + temp.FieldChineseName + "." + temp.FieldName);
            }

            if (FieldList.Count > 0)
            {
                LB_fldList.SetSelected(0, true);
            }
            dtFields = _dao.GetFieldList();
            ShowFields(dtFields);
        }
예제 #2
0
 public FormFields()
 {
     InitializeComponent();
     _currFields = new FieldsCollections();
     _dao        = new QueryDAO();
 }