Skip to content

Commit

Permalink
Unify line breaks
Browse files Browse the repository at this point in the history
  • Loading branch information
HashidaTKS committed Mar 27, 2024
1 parent 939db1a commit a5f090e
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 26 deletions.
22 changes: 11 additions & 11 deletions Dialog/NewDomainDialog.xaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
<Window x:Class="FlexConfirmMail.Dialog.NewDomainDialog"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:FlexConfirmMail"
xmlns:resx="clr-namespace:FlexConfirmMail.Properties"
Title="{x:Static resx:Resources.NewDomainDialogTitle}"
mc:Ignorable="d" Width="600" Height="400">
<Window x:Class="FlexConfirmMail.Dialog.NewDomainDialog"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:FlexConfirmMail"
xmlns:resx="clr-namespace:FlexConfirmMail.Properties"
Title="{x:Static resx:Resources.NewDomainDialogTitle}"
mc:Ignorable="d" Width="600" Height="400">
<Grid Background="Red">
<TextBlock x:Name="textBlockTitle" HorizontalAlignment="Center" TextWrapping="Wrap" Text="{x:Static resx:Resources.Warning}" VerticalAlignment="Top" TextAlignment="Center" Margin="-8,0,0,0" Width="450" Height="47" FontSize="36" Foreground="White"/>
<TextBlock x:Name="textBlockBody" TextWrapping="Wrap" Text="" Margin="50,62,50,40" Background="White" FontSize="24"/>
<Button x:Name="buttonSend" Content="{x:Static resx:Resources.Send}" HorizontalAlignment="Left" VerticalAlignment="Bottom" Width="75" Margin="200,0,0,7" Height="25" Click="buttonSend_Click"/>
<Button Content="{x:Static resx:Resources.Cancel}" HorizontalAlignment="Right" VerticalAlignment="Bottom" Width="75" Margin="0,0,200,7" Height="25" IsCancel="True"/>
</Grid>
</Window>
</Grid>
</Window>
30 changes: 15 additions & 15 deletions Dialog/NewDomainDialog.xaml.cs
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
using System;
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Windows;
using System.Windows;
using System.Windows.Documents;
using System.Windows.Threading;

namespace FlexConfirmMail.Dialog
{
public partial class NewDomainDialog : Window
{
public NewDomainDialog()
using System.Windows.Threading;

namespace FlexConfirmMail.Dialog
{
public partial class NewDomainDialog : Window
{
public NewDomainDialog()
{
QueueLogger.Log($"===== Open {nameof(NewDomainDialog)} =====");
InitializeComponent();
InitializeComponent();
}

public NewDomainDialog(HashSet<string> addresses) : this()
public NewDomainDialog(HashSet<string> addresses) : this()
{
CultureInfo.CurrentCulture = new CultureInfo("en-US", false);
CultureInfo.CurrentCulture = new CultureInfo("en-US", false);

if (addresses.Count > 2)
{
Expand All @@ -32,13 +32,13 @@ public NewDomainDialog(HashSet<string> addresses) : this()
FontWeight = FontWeights.Bold
});
textBlockBody.Inlines.Add("\n\n");
textBlockBody.Inlines.Add(Properties.Resources.ConfirmNewDomainsBody2);
textBlockBody.Inlines.Add(Properties.Resources.ConfirmNewDomainsBody2);
}

private void buttonSend_Click(object sender, RoutedEventArgs e)
{
QueueLogger.Log($"* Send button clicked. closing...");
QueueLogger.Log($"* Send button clicked. closing...");
DialogResult = true;
}
}
}
}

0 comments on commit a5f090e

Please sign in to comment.