Permalink
Browse files

Reformat code and fix typos.

  • Loading branch information...
1 parent f06449a commit 6a2c375c8e2849a30f8038310f38e89dfefa5841 @mrward mrward committed Dec 22, 2011
@@ -129,7 +129,7 @@
<TextBlock Text="{Binding ServiceDescriptionMessage}"></TextBlock>
</Border>
- <TextBlock Grid.Row="6" Text="NameSpace:" Margin="4,0,4,0" VerticalAlignment="Bottom"></TextBlock>
+ <TextBlock Grid.Row="6" Text="Namespace:" Margin="4,0,4,0" VerticalAlignment="Bottom"></TextBlock>
<TextBox Grid.Row="7" Grid.ColumnSpan="3"
Margin="4" Background="White"
Text="{Binding DefaultNameSpace}">
@@ -1,36 +1,19 @@
-/*
- * Created by SharpDevelop.
- * User: Peter Forstmeier
- * Date: 12.10.2011
- * Time: 19:24
- *
- * To change this template use Tools | Options | Coding | Edit Standard Headers.
- */
+// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
+// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
+
using System;
-using System.Collections.Generic;
-using System.Text;
using System.Windows;
using System.Windows.Controls;
-using System.Windows.Data;
-using System.Windows.Documents;
-using System.Windows.Input;
-using System.Windows.Media;
-
-using ICSharpCode.SharpDevelop.Gui.Dialogs.ReferenceDialog.ServiceReference;
namespace ICSharpCode.SharpDevelop.Gui.Dialogs.ReferenceDialog.ServiceReference
{
- /// <summary>
- /// Interaction logic for AddServiceReferenceDialog.xaml
- /// </summary>
public partial class AddServiceReferenceDialog : Window
{
public AddServiceReferenceDialog()
{
InitializeComponent();
}
-
void okButtonClick(object sender, RoutedEventArgs e)
{
this.DialogResult = true;
@@ -43,17 +26,15 @@ void cancelButtonClick(object sender, RoutedEventArgs e)
Close();
}
-
void Cbo_LostFocus(object sender, RoutedEventArgs e)
{
- var comboBox = (ComboBox) sender;
- if(comboBox.SelectedItem != null)
+ var comboBox = (ComboBox)sender;
+ if (comboBox.SelectedItem != null)
return;
var newItem = comboBox.Text;
comboBox.SelectedItem = newItem;
}
-
void Tree_SelectedItemChanged(object sender, RoutedPropertyChangedEventArgs<object> e)
{
if (e.NewValue != null) {
Oops, something went wrong.

0 comments on commit 6a2c375

Please sign in to comment.