public DBInterfaceDesignerForm(DBInterface dbInterface)
        {
            InitializeComponent();
            DBInterface            = dbInterface;
            TypeCurrent            = typeof(string);
            drbtnAddColletion.Text = string.Format("Добавить (String)");

            MemberInits    = new TableMemberInfos();
            MemberExists   = new TableMemberInfos();
            LevelMax       = 6;
            RecordCountMax = 100000;

            treeExist.StateImageList = DBInterface.Icons;

            TypeTables = new XPTables();
            TypeTables.FillTable(DBInterface.TypeDiscoveryService, typeof(XPBaseObject));

            UpdateExistData();

            CreateInitData();

            treeInit.DataSource       = MemberInits;
            treeExist.DataSource      = MemberExists;
            dbInterface.ItemsChanged += dbInterface_ItemsChanged;

            gluInits.Properties.DataSource = TypeTables;

            gluInits.EditValue = TypeTables.Find(DBInterface.TableType);
        }
Beispiel #2
0
        public DBFormDesignerForm(DBForm dbForm)
        {
            InitializeComponent();
            DBForm       = dbForm;
            MemberInits  = new ViewMemberInfos();
            MemberExists = new ViewMemberInfos();

            treeExist.StateImageList = DBForm.Icons;

            UpdateExistData();
            GenerateInitTables();

            treeInit.DataSource  = MemberInits;
            treeExist.DataSource = MemberExists;

            TypeTables = new XPTables();
            TypeTables.FillTable(DBForm.TypeDiscoveryService, typeof(DBViewBase));
            gluiViewType2.DataSource = TypeTables;
        }