private void SetPermissions() { if (AuthInfo.CurrentUser.PermissionId.Equals("0")) { bt_AddBuch.Enabled = false; bt_Zu_aendern.Enabled = false; bt_Rueckgabe.Enabled = false; } else { bt_AddBuch.Enabled = true; bt_Zu_aendern.Enabled = true; bt_Rueckgabe.Enabled = true; conditionHelper.FillCombobox(ref cb_Zustand, -1); } }
public Form_Copy(string isbn) { InitializeComponent(); LoadTheme(); SetPermissions(); this.Text = Text + AuthInfo.FormInfo(); tb_ISBN.Text = isbn; conditionHelper.FillCombobox(ref acb_Zustand, 0); tb_ExempCount.Text = gv_Exemplare.RowCount.ToString(); }