init
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
using System.Windows.Controls;
|
||||
using DTS.Common.Interface.Database;
|
||||
|
||||
// ReSharper disable CheckNamespace
|
||||
|
||||
namespace DatabaseServices
|
||||
{
|
||||
/// <inheritdoc cref="IDatabaseSwitchView" />
|
||||
/// <summary>
|
||||
/// Interaction logic for DatabaseSwitchView.xaml
|
||||
/// </summary>
|
||||
public partial class DatabaseSwitchView : IDatabaseSwitchView
|
||||
{
|
||||
public DatabaseSwitchView()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
private void SwitchToLocal_Click(object sender, System.Windows.RoutedEventArgs e)
|
||||
{
|
||||
var vm = (IDatabaseSwitchViewModel)((Control)sender).DataContext;
|
||||
vm.SwitchLocal();
|
||||
}
|
||||
|
||||
private void SwitchToRemote_Click(object sender, System.Windows.RoutedEventArgs e)
|
||||
{
|
||||
var vm = (IDatabaseSwitchViewModel)((Control)sender).DataContext;
|
||||
vm.SwitchRemote();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user