Ejemplo n.º 1
0
        public DirectoryObject(AccessRule accessRule, string path, int filesCount)
        {
            Path       = path;
            FilesCount = filesCount;
            AccessRule = accessRule;

            Id = DirectoryHelper.GenerateID();
        }
Ejemplo n.º 2
0
 public DirectoryObject(int id, string accessFileName, string comment, AccessRule accessRule, string path, int filesCount)
 {
     Id             = id;
     AccessFileName = accessFileName;
     Path           = path;
     Comment        = comment;
     FilesCount     = filesCount;
     AccessRule     = accessRule;
 }
Ejemplo n.º 3
0
        private void DeleteRuleClick(object sender, RoutedEventArgs e)
        {
            AccessRule currentRule = RulesDataGrid.SelectedItem as AccessRule;

            Rules.Remove(currentRule);
        }