コード例 #1
0
 private void AddAdminPrivileges()
 {
     this.Privileges.Add(UserManagementPrivilege.GetInstance());
     this.Privileges.Add(ProviderManagementPrivilege.GetInstance());
     this.Privileges.Add(EarningQueriesPrivilege.GetInstance());
     this.Privileges.Add(ClientManagementPrivilege.GetInstance());
 }
 public static ClientManagementPrivilege GetInstance()
 {
     if (instance == null)
     {
         instance = new ClientManagementPrivilege();
     }
     return(instance);
 }
コード例 #3
0
 private void AddCashierPrivileges()
 {
     this.Privileges.Add(ClientManagementPrivilege.GetInstance());
 }