Пример #1
0
 public DatabaseProvider()
 {
     Users = new UsersData();
     Roles = new RolesData();
     Households = new HouseholdsData();
     Audits = new AuditData();
     Permissions = new PermissionsData();
 }
Пример #2
0
        public Permissions(PermissionsData data)
        {
            InitializeComponent();

            this.data = data;

            Saved = false;

            manipulateOwnLines.IsChecked     = data.ManipulateOwnLines;
            manipulateOtherLines.IsChecked   = data.ManipulateOtherLines;
            manipulateOwnObjects.IsChecked   = data.ManipulateOwnObjects;
            manipulateOtherObjects.IsChecked = data.ManipulateOtherObjects;
            wipeLines.IsChecked   = data.WipeStrokes;
            wipeObjects.IsChecked = data.WipeObjects;
            usePointers.IsChecked = data.UsePointers;
        }