Change code formatting
This commit is contained in:
@ -18,52 +18,43 @@ using System.Windows.Shapes;
|
||||
using WGneu.Models;
|
||||
|
||||
|
||||
namespace WGneu.Windows
|
||||
{
|
||||
namespace WGneu.Windows {
|
||||
/// <summary>
|
||||
/// Interaction logic for MainWindow.xaml
|
||||
/// </summary>
|
||||
public partial class MainWindow : Window
|
||||
{
|
||||
public partial class MainWindow : Window {
|
||||
private readonly WgContext _context = new WgContext();
|
||||
private CollectionViewSource countryViewSource;
|
||||
public MainWindow()
|
||||
{
|
||||
public MainWindow() {
|
||||
InitializeComponent();
|
||||
countryViewSource = (CollectionViewSource) FindResource("countryViewSource");
|
||||
countryViewSource = (CollectionViewSource)FindResource("countryViewSource");
|
||||
}
|
||||
|
||||
private void Window_Loaded(object sender, RoutedEventArgs e)
|
||||
{
|
||||
private void Window_Loaded(object sender, RoutedEventArgs e) {
|
||||
_context.Countries.Load();
|
||||
countryViewSource.Source = _context.Countries.Local.ToObservableCollection();
|
||||
}
|
||||
|
||||
protected override void OnClosing(CancelEventArgs e)
|
||||
{
|
||||
protected override void OnClosing(CancelEventArgs e) {
|
||||
_context.Dispose();
|
||||
base.OnClosing(e);
|
||||
}
|
||||
|
||||
private void Button1_Click(object sender, EventArgs e)
|
||||
{
|
||||
private void Button1_Click(object sender, EventArgs e) {
|
||||
BankDetailsWindow w = new BankDetailsWindow();
|
||||
w.Show();
|
||||
}
|
||||
|
||||
private void Button2_Click(object sender, EventArgs e)
|
||||
{
|
||||
private void Button2_Click(object sender, EventArgs e) {
|
||||
MemberListWindow w = new MemberListWindow();
|
||||
w.Show();
|
||||
}
|
||||
|
||||
private void Button_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
private void Button_Click(object sender, RoutedEventArgs e) {
|
||||
|
||||
}
|
||||
|
||||
private void ComboBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
|
||||
{
|
||||
private void ComboBox_SelectionChanged(object sender, SelectionChangedEventArgs e) {
|
||||
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user