Exemplo n.º 1
0
        private void FrmUnits_Load(object sender, EventArgs e)
        {
            LoadUnits();

            Mark = InstCNavigation.ShowFirst();
            Bind();
            //DTSecurity = PrimePOS.Security.CSecurity.GetFormSecurity(this.Name);
            InstCSecurity     = new CSecurity(this.Name);
            BtnNew.Enabled    = InstCSecurity.AllowSave();
            BtnSave.Enabled   = InstCSecurity.AllowEdit();
            BtnDelete.Enabled = InstCSecurity.AllowDelete();
        }
Exemplo n.º 2
0
 private void EnableButtons()
 {
     BtnDelete.Enabled = InstCSecurity.AllowDelete();
     EnableNavigation();
 }