public DirectoryObject(AccessRule accessRule, string path, int filesCount)
        {
            Path       = path;
            FilesCount = filesCount;
            AccessRule = accessRule;

            Id = DirectoryHelper.GenerateID();
        }
 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;
 }
Esempio n. 3
0
        private void DeleteRuleClick(object sender, RoutedEventArgs e)
        {
            AccessRule currentRule = RulesDataGrid.SelectedItem as AccessRule;

            Rules.Remove(currentRule);
        }