private void bt_zustand_Click(object sender, EventArgs e) { FormAttribute Zustand = new FormAttribute("Zustand"); Zustand.ShowDialog(this); Zustand.Dispose(); conditionHelper.FillCombobox(ref acb_Zustand, 0); }
private void ShowFormAttribute(string name) { if (!IsConnected()) { return; } FormAttribute formAttribute = new FormAttribute(name); formAttribute.ShowDialog(this); formAttribute.Dispose(); }
private void bt_open_Click(object sender, EventArgs e) { int index = cb_Zustand.SelectedIndex; FormAttribute Zustand = new FormAttribute("Zustand"); Zustand.ShowDialog(this); Zustand.Dispose(); if (!AuthInfo.CurrentUser.PermissionId.Equals("0")) { conditionHelper.FillCombobox(ref cb_Zustand, -1); } cb_Zustand.SelectedIndex = index; }