Exemplo n.º 1
0
        public LabelControl(int idTable)
        {
            _parent = null;
            _idT    = idTable;
            InitializeComponent();

            if (!SyncController.HasRight(idTable))
            {
                button2.Enabled = false;
            }
        }
Exemplo n.º 2
0
        public LabelControl(DBTablesGroups par, int idTable)
        {
            _parent = par;
            _idT    = idTable;
            InitializeComponent();

            if (!SyncController.HasRight(idTable))
            {
                button2.Enabled = false;
            }
        }
Exemplo n.º 3
0
        public StyleControl(DBTablesGroups par, propertyTableControl p_table, GeomType type, bool canWrite = true)
        {
            InitializeComponent();
            btnOk.Enabled = canWrite;
            tb1           = new TabControl();
            loadPenList();
            loadImgBrush();
            foreach (FontFamily ff in FontFamily.Families)
            {
                if (ff.Name.Equals("Map Symbols", StringComparison.InvariantCultureIgnoreCase))
                {
                    fontDialog1.Font = new Font("Map Symbols", 14);
                    loadSymbol();
                }
            }
            showTabPanel(true, true, true);

            parent         = par;
            property_table = p_table;

            TabPage symbPage  = tabControl1.TabPages[0];
            TabPage penPage   = tabControl1.TabPages[1];
            TabPage brushPage = tabControl1.TabPages[2];

            if (type == GeomType.point)
            {
                tabControl1.TabPages.Remove(penPage);
                tabControl1.TabPages.Remove(brushPage);
            }
            else if (type == GeomType.line)
            {
                tabControl1.TabPages.Remove(symbPage);
                tabControl1.TabPages.Remove(brushPage);
            }
            else if (type == GeomType.polygon)
            {
                tabControl1.TabPages.Remove(symbPage);
            }
        }