Skip to content

Commit ce398c4

Browse files
committed
chore: format code
1 parent 1753399 commit ce398c4

19 files changed

Lines changed: 561 additions & 280 deletions

Directory.Build.props

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<Project>
2-
32
<!-- Common properties for all projects -->
43
<PropertyGroup>
54
<LangVersion>latest</LangVersion>
65
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
76
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
87
<GenerateDocumentationFile>true</GenerateDocumentationFile>
9-
<NoWarn>$(NoWarn);CS1591</NoWarn> <!-- Missing XML comment for publicly visible type -->
8+
<NoWarn>$(NoWarn);CS1591</NoWarn>
9+
<!-- Missing XML comment for publicly visible type -->
1010
</PropertyGroup>
1111

1212
<!-- Package metadata -->
@@ -25,5 +25,4 @@
2525
<AssemblyVersion>1.2.4.0</AssemblyVersion>
2626
<FileVersion>1.2.4.0</FileVersion>
2727
</PropertyGroup>
28-
2928
</Project>

SVNPathCopy.slnx

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,20 @@
11
<Solution>
22
<Configurations>
3-
<Platform Name="Any CPU"/>
4-
<Platform Name="x64"/>
3+
<Platform Name="Any CPU" />
4+
<Platform Name="x64" />
55
</Configurations>
66

7-
<Project Path="src/SVNPathCopy.Configuration/SVNPathCopy.Configuration.csproj"/>
8-
<Project Path="src/SVNPathCopy.Core/SVNPathCopy.Core.csproj"/>
7+
<Project Path="src/SVNPathCopy.Configuration/SVNPathCopy.Configuration.csproj" />
8+
<Project Path="src/SVNPathCopy.Core/SVNPathCopy.Core.csproj" />
99
<Project Path="src/SVNPathCopy.ShellExtension/SVNPathCopy.ShellExtension.csproj">
10-
<Platform Project="x64"/>
10+
<Platform Project="x64" />
1111
</Project>
1212

13-
<Project Path="tests/SVNPathCopy.Tests/SVNPathCopy.Tests.csproj"/>
14-
<Project Path="src/SVNPathCopy.Installer/SVNPathCopy.Installer.wixproj" Type="a5a4e0d0-69be-4b0a-9e4b-8c9f6e4a1234">
15-
<Platform Project="x64"/>
13+
<Project Path="tests/SVNPathCopy.Tests/SVNPathCopy.Tests.csproj" />
14+
<Project
15+
Path="src/SVNPathCopy.Installer/SVNPathCopy.Installer.wixproj"
16+
Type="a5a4e0d0-69be-4b0a-9e4b-8c9f6e4a1234"
17+
>
18+
<Platform Project="x64" />
1619
</Project>
1720
</Solution>

src/SVNPathCopy.Configuration/App.xaml

Lines changed: 60 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
<Application x:Class="SVNPathCopy.Configuration.App"
2-
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3-
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4-
xmlns:converters="clr-namespace:SVNPathCopy.Configuration.Converters"
5-
StartupUri="MainWindow.xaml">
1+
<Application
2+
x:Class="SVNPathCopy.Configuration.App"
3+
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
4+
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
5+
xmlns:converters="clr-namespace:SVNPathCopy.Configuration.Converters"
6+
StartupUri="MainWindow.xaml"
7+
>
68
<Application.Resources>
79
<ResourceDictionary>
810
<!-- Converters -->
@@ -33,14 +35,22 @@
3335
<Setter Property="Template">
3436
<Setter.Value>
3537
<ControlTemplate TargetType="Button">
36-
<Border Background="{TemplateBinding Background}"
37-
CornerRadius="4"
38-
Padding="{TemplateBinding Padding}">
39-
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center" />
38+
<Border
39+
Background="{TemplateBinding Background}"
40+
CornerRadius="4"
41+
Padding="{TemplateBinding Padding}"
42+
>
43+
<ContentPresenter
44+
HorizontalAlignment="Center"
45+
VerticalAlignment="Center"
46+
/>
4047
</Border>
4148
<ControlTemplate.Triggers>
4249
<Trigger Property="IsMouseOver" Value="True">
43-
<Setter Property="Background" Value="{StaticResource PrimaryHoverBrush}" />
50+
<Setter
51+
Property="Background"
52+
Value="{StaticResource PrimaryHoverBrush}"
53+
/>
4454
</Trigger>
4555
<Trigger Property="IsEnabled" Value="False">
4656
<Setter Property="Opacity" Value="0.5" />
@@ -61,12 +71,17 @@
6171
<Setter Property="Template">
6272
<Setter.Value>
6373
<ControlTemplate TargetType="Button">
64-
<Border Background="{TemplateBinding Background}"
65-
BorderBrush="{TemplateBinding BorderBrush}"
66-
BorderThickness="{TemplateBinding BorderThickness}"
67-
CornerRadius="4"
68-
Padding="{TemplateBinding Padding}">
69-
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center" />
74+
<Border
75+
Background="{TemplateBinding Background}"
76+
BorderBrush="{TemplateBinding BorderBrush}"
77+
BorderThickness="{TemplateBinding BorderThickness}"
78+
CornerRadius="4"
79+
Padding="{TemplateBinding Padding}"
80+
>
81+
<ContentPresenter
82+
HorizontalAlignment="Center"
83+
VerticalAlignment="Center"
84+
/>
7085
</Border>
7186
<ControlTemplate.Triggers>
7287
<Trigger Property="IsMouseOver" Value="True">
@@ -85,27 +100,43 @@
85100
<ControlTemplate TargetType="CheckBox">
86101
<StackPanel Orientation="Horizontal">
87102
<Grid Width="44" Height="22">
88-
<Border x:Name="track"
89-
Background="#CCCCCC"
90-
CornerRadius="11"
91-
BorderThickness="0" />
92-
<Ellipse x:Name="thumb"
93-
Width="18" Height="18"
94-
Fill="White"
95-
HorizontalAlignment="Left"
96-
Margin="2,0,0,0">
103+
<Border
104+
x:Name="track"
105+
Background="#CCCCCC"
106+
CornerRadius="11"
107+
BorderThickness="0"
108+
/>
109+
<Ellipse
110+
x:Name="thumb"
111+
Width="18"
112+
Height="18"
113+
Fill="White"
114+
HorizontalAlignment="Left"
115+
Margin="2,0,0,0"
116+
>
97117
<Ellipse.Effect>
98-
<DropShadowEffect BlurRadius="4" ShadowDepth="1" Opacity="0.3" />
118+
<DropShadowEffect
119+
BlurRadius="4"
120+
ShadowDepth="1"
121+
Opacity="0.3"
122+
/>
99123
</Ellipse.Effect>
100124
</Ellipse>
101125
</Grid>
102126
<ContentPresenter Margin="8,0,0,0" VerticalAlignment="Center" />
103127
</StackPanel>
104128
<ControlTemplate.Triggers>
105129
<Trigger Property="IsChecked" Value="True">
106-
<Setter TargetName="track" Property="Background"
107-
Value="{StaticResource PrimaryBrush}" />
108-
<Setter TargetName="thumb" Property="HorizontalAlignment" Value="Right" />
130+
<Setter
131+
TargetName="track"
132+
Property="Background"
133+
Value="{StaticResource PrimaryBrush}"
134+
/>
135+
<Setter
136+
TargetName="thumb"
137+
Property="HorizontalAlignment"
138+
Value="Right"
139+
/>
109140
<Setter TargetName="thumb" Property="Margin" Value="0,0,2,0" />
110141
</Trigger>
111142
<Trigger Property="IsEnabled" Value="False">

src/SVNPathCopy.Configuration/App.xaml.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,4 @@ namespace SVNPathCopy.Configuration;
33
/// <summary>
44
/// Interaction logic for App.xaml
55
/// </summary>
6-
public partial class App
7-
{
8-
}
6+
public partial class App { }

src/SVNPathCopy.Configuration/Converters/Converters.cs

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,12 @@ public object Convert(object value, Type targetType, object parameter, CultureIn
4646
return Visibility.Collapsed;
4747
}
4848

49-
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) =>
50-
throw new NotImplementedException();
49+
public object ConvertBack(
50+
object value,
51+
Type targetType,
52+
object parameter,
53+
CultureInfo culture
54+
) => throw new NotImplementedException();
5155
}
5256

5357
/// <summary>
@@ -67,8 +71,12 @@ public object Convert(object value, Type targetType, object parameter, CultureIn
6771
return new SolidColorBrush(Colors.Gray);
6872
}
6973

70-
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) =>
71-
throw new NotImplementedException();
74+
public object ConvertBack(
75+
object value,
76+
Type targetType,
77+
object parameter,
78+
CultureInfo culture
79+
) => throw new NotImplementedException();
7280
}
7381

7482
/// <summary>
@@ -120,6 +128,10 @@ public object Convert(object[] values, Type targetType, object parameter, Cultur
120128
return Visibility.Visible;
121129
}
122130

123-
public object[] ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture) =>
124-
throw new NotImplementedException();
131+
public object[] ConvertBack(
132+
object value,
133+
Type[] targetTypes,
134+
object parameter,
135+
CultureInfo culture
136+
) => throw new NotImplementedException();
125137
}

0 commit comments

Comments
 (0)