Skip to content

Commit

Permalink
Add Italic for Inherited
Browse files Browse the repository at this point in the history
  • Loading branch information
diev committed Jul 6, 2021
1 parent ba2ab7d commit 6850560
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
2 changes: 2 additions & 0 deletions MainViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ public ObservableCollection<RuleInfo> GetRuleInfos()
flags.ToString(),
comment,
group,
rule.IsInherited,
danger)
);
}
Expand All @@ -186,6 +187,7 @@ public ObservableCollection<RuleInfo> GetRuleInfos()
flags.ToString(),
comment,
group,
rule.IsInherited,
danger)
);
}
Expand Down
3 changes: 3 additions & 0 deletions MainWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@
<DataTrigger Binding="{Binding IsGroup}" Value="false">
<Setter Property="FontWeight" Value="Bold" />
</DataTrigger>
<DataTrigger Binding="{Binding IsInherited}" Value="true">
<Setter Property="FontStyle" Value="Italic" />
</DataTrigger>
<DataTrigger Binding="{Binding IsDanger}" Value="true">
<Setter Property="Foreground" Value="Red" />
</DataTrigger>
Expand Down
4 changes: 3 additions & 1 deletion Models/RuleInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,15 @@ namespace WhoCan.Models
{
public class RuleInfo : BaseObject
{
public RuleInfo(string principalName, bool domain, bool deny, string flags, string comment, bool group, bool danger)
public RuleInfo(string principalName, bool domain, bool deny, string flags, string comment, bool group, bool inherited, bool danger)
{
PrincipalName = principalName;
Domain = domain;
Deny = deny;
Flags = flags;
Comment = comment;
IsGroup = group;
IsInherited = inherited;
IsDanger = danger;
IsSelected = false;
}
Expand All @@ -37,6 +38,7 @@ public RuleInfo(string principalName, bool domain, bool deny, string flags, stri
public string Flags { get; set; }
public string Comment { get; set; }
public bool IsGroup { get; set; }
public bool IsInherited { get; set; }
public bool IsDanger { get; set; }
public bool IsSelected { get; set; }
}
Expand Down
4 changes: 2 additions & 2 deletions Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,5 +66,5 @@
// Можно задать все значения или принять номера сборки и редакции по умолчанию
// используя "*", как показано ниже:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.4.3.0")]
[assembly: AssemblyFileVersion("1.4.3.0")]
[assembly: AssemblyVersion("1.5.0.0")]
[assembly: AssemblyFileVersion("1.5.0.0")]

0 comments on commit 6850560

Please # to comment.