public propertyTableControl(int id1, DBTablesGroups par, TableEdit table_edit_frm) { InitializeComponent(); id = id1; geom = getGeomTable(id); parent = par; table_edit = table_edit_frm; if (!geom) { MessageBox.Show(Rekod.Properties.Resources.PTC_TableIsNotLayer); parent.CloseElemsAfter(this, true); } cbRefType.SelectedIndex = 0; loadTableGeomField(); loadTableStyleField(); loadTables(); loadInfo(); loadDaipazonInfo(id); SetControlVisibility(); if (!Rekod.DBTablesEdit.SyncController.HasRight(id)) { button2.Enabled = false; } }
public ManagementTables(DBTablesGroups par) { InitializeComponent(); this.DoubleBuffered = true; parent = par; reloadTables(); }
public CloseButton(UserControl cfc, DBTablesGroups frm) { controlForClose = cfc; form = frm; this.Size = new Size(19, 19); this.BackgroundImage = Rekod.Properties.Resources.delete; this.BackgroundImageLayout = ImageLayout.Stretch; this.Anchor = (AnchorStyles.Top | AnchorStyles.Right); }
//private ActionWithTables awt; public TableEdit(NpgsqlConnection conn1, DBTablesGroups par) { InitializeComponent(); conn = conn1; loadTableTypes(); parent = par; if (cbTableType.Items.Count > 0) { cbTableType.SelectedIndex = 0; } }
public ActionWithTables(DBTablesGroups par, TableEdit t_edit) { InitializeComponent(); parent = par; table_edit = t_edit; if (Program.app.sscUser != null) { btnGroups.Visible = false; btnIndexation.Location = btnCopy.Location; btnCopy.Location = btnGroups.Location; } }
public EditGroupsOrder(DBTablesGroups parent, PanelGroup panelgroup) { _parentForm = parent; _panelGroup = panelgroup; _groupFunct = new GroupFunct(); InitializeComponent(); listBox1.SelectedIndexChanged += (o, e) => { int i = listBox1.SelectedIndex; buttonBringUp.Enabled = (i > 0); buttonBringDown.Enabled = (i != -1 && i != listBox1.Items.Count - 1); buttonEditNameDesc.Enabled = deleteButton.Enabled = (i != -1); }; }
public TableGroup(int id_table, DBTablesGroups par, TableEdit t_edit) { InitializeComponent(); id = id_table; parent = par; table_edit = t_edit; gf = new GroupFunct(); listBox1.SelectedIndexChanged += (s, e) => { button1.Enabled = (listBox1.SelectedIndex != -1); }; listBox2.SelectedIndexChanged += (s, e) => { button2.Enabled = (listBox2.SelectedIndex != -1); }; reload(); }
public PropertyFieldControl(int id1, DBTablesGroups par, FiledEditListControl f_edit) { InitializeComponent(); panel3.Location = panel4.Location; panel5.Location = panel4.Location; id = id1; loadTables(); loadInfo(); parent = par; field_edit = f_edit; if (field_edit != null && !Rekod.DBTablesEdit.SyncController.HasRight(field_edit.TableId)) { button1.Enabled = false; } }
public FiledEditListControl(int id1, DBTablesGroups par, TableEdit table_edit_frm) { InitializeComponent(); id = id1; loadFields(id); button3.Enabled = false; parent = par; table_edit = table_edit_frm; hasRightToChange = DBTablesEdit.SyncController.HasRight(id); if (!hasRightToChange) { button1.Enabled = false; button2.Enabled = false; button4.Enabled = false; button5.Enabled = false; } }
public PanelGroup(DBTablesGroups par) { InitializeComponent(); gf = new GroupFunct(); parent = par; listBox1.SelectedIndexChanged += (o, e) => { int i = listBox1.SelectedIndex; button1.Enabled = (i != -1); button5.Enabled = (i != -1 && i != listBox1.Items.Count - 1); button6.Enabled = (i > 0); }; listBox2.SelectedIndexChanged += (o, e) => { button2.Enabled = (listBox2.SelectedIndex != -1); }; reloadGroups(); }
public AddEditAtributs(bool upd1, int id1, int idT1, DBTablesGroups par, FiledEditListControl f_edit) { InitializeComponent(); upd = upd1; id = id1; idT = idT1; loadTipField(); loadInfo(); parent = par; field_edit = f_edit; if (!upd) { tb = new TextBoxInfo(textBox1); textBox1.TextChanged += new EventHandler(textBox1_TextChanged); textBox1.MouseUp += new MouseEventHandler(textBox1_MouseUp); textBox1.KeyUp += new KeyEventHandler(textBox1_KeyUp); } tb2 = new TextBoxInfo(this.textBox2); textBox2.TextChanged += new EventHandler(textBox2_TextChanged); textBox2.MouseUp += new MouseEventHandler(textBox2_MouseUp); textBox2.KeyUp += new KeyEventHandler(textBox2_KeyUp); var fi = classesOfMetods.getFieldInfo(id); var ti = classesOfMetods.getTableInfo(idT); if (!SyncController.HasRight(idT)) { button2.Enabled = false; } if (fi.type == 5) { button2.Enabled = false; textBox2.Enabled = false; textBox3.Enabled = false; checkBox1.Enabled = false; checkBoxHidden.Enabled = false; } if (ti.pkField == fi.nameDB) { checkBox1.Enabled = false; checkBoxHidden.Enabled = false; } dic = initalizeDictionary(); }