Permalink
Browse files

Add "Dialog" suffix to Window components that are opened as dialogs

  • Loading branch information...
1 parent 1e2361c commit 08223ca0edcf20a9953b886773f7aad7660fbbfb @igstan committed Oct 29, 2010
@@ -1,4 +1,4 @@
-<Window x:Class="Nemira.AddSubscription"
+<Window x:Class="Nemira.AddDialog"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Add Feed Subscription"
@@ -6,9 +6,9 @@
namespace Nemira
{
- public partial class AddSubscription : Window
+ public partial class AddDialog : Window
{
- public AddSubscription()
+ public AddDialog()
{
InitializeComponent();
Loaded += new RoutedEventHandler(OnLoaded);
View
@@ -125,12 +125,12 @@ private void OnHyperlinkMouseLeave(object sender, RoutedEventArgs e)
private void AddSubscription(object sender, ExecutedRoutedEventArgs e)
{
- var addSubscriptionDialog = new AddSubscription();
- addSubscriptionDialog.Owner = this;
+ var addDialog = new AddDialog();
+ addDialog.Owner = this;
- if (addSubscriptionDialog.ShowDialog() == true)
+ if (addDialog.ShowDialog() == true)
{
- readerAccount.AddSubscription(addSubscriptionDialog.FeedUrl);
+ readerAccount.AddSubscription(addDialog.FeedUrl);
LoadSubscriptions();
}
}
@@ -158,7 +158,7 @@ private void CanRemoveSubscription(object sender, CanExecuteRoutedEventArgs e)
private void OnRenameSubscription(object sender, RoutedEventArgs e)
{
var subscription = subscriptions.SelectedItem as Subscription;
- var renameDialog = new RenameSubscription(subscription);
+ var renameDialog = new RenameDialog(subscription);
renameDialog.Owner = this;
if (renameDialog.ShowDialog() == true)
View
@@ -97,14 +97,14 @@
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</ApplicationDefinition>
- <Compile Include="AddSubscription.xaml.cs">
- <DependentUpon>AddSubscription.xaml</DependentUpon>
+ <Compile Include="AddDialog.xaml.cs">
+ <DependentUpon>AddDialog.xaml</DependentUpon>
</Compile>
<Compile Include="LoginWindow.xaml.cs">
<DependentUpon>LoginWindow.xaml</DependentUpon>
</Compile>
- <Compile Include="RenameSubscription.xaml.cs">
- <DependentUpon>RenameSubscription.xaml</DependentUpon>
+ <Compile Include="RenameDialog.xaml.cs">
+ <DependentUpon>RenameDialog.xaml</DependentUpon>
</Compile>
<Compile Include="StubHttpClient.cs" />
<Page Include="LoginWindow.xaml">
@@ -123,11 +123,11 @@
<DependentUpon>MainWindow.xaml</DependentUpon>
<SubType>Code</SubType>
</Compile>
- <Page Include="AddSubscription.xaml">
+ <Page Include="AddDialog.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
- <Page Include="RenameSubscription.xaml">
+ <Page Include="RenameDialog.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
@@ -1,4 +1,4 @@
-<Window x:Class="Nemira.RenameSubscription"
+<Window x:Class="Nemira.RenameDialog"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Rename Subscription"
@@ -7,9 +7,9 @@
namespace Nemira
{
- public partial class RenameSubscription : Window
+ public partial class RenameDialog : Window
{
- public RenameSubscription(Subscription subscription)
+ public RenameDialog(Subscription subscription)
{
InitializeComponent();

0 comments on commit 08223ca

Please sign in to comment.