diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2017-11-27 21:51:38 +0200 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2017-11-27 21:51:38 +0200 |
| commit | df2f9b27b12356d6e92c64a72049f0fc4e6b86c0 (patch) | |
| tree | 049ced63087ef30986cc998f8546071e5894e37e /Software/Visual_Studio/Utilities/Tango.Synchronization.UI/ViewModels/MainViewVM.cs | |
| parent | 7060dc80c707fc0441ff69fe4f899107cb3f6fc1 (diff) | |
| download | Tango-df2f9b27b12356d6e92c64a72049f0fc4e6b86c0.tar.gz Tango-df2f9b27b12356d6e92c64a72049f0fc4e6b86c0.zip | |
Started Remote <=> Local Synchronization... /;
Diffstat (limited to 'Software/Visual_Studio/Utilities/Tango.Synchronization.UI/ViewModels/MainViewVM.cs')
| -rw-r--r-- | Software/Visual_Studio/Utilities/Tango.Synchronization.UI/ViewModels/MainViewVM.cs | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/Software/Visual_Studio/Utilities/Tango.Synchronization.UI/ViewModels/MainViewVM.cs b/Software/Visual_Studio/Utilities/Tango.Synchronization.UI/ViewModels/MainViewVM.cs index d388d761f..8d18e5ce7 100644 --- a/Software/Visual_Studio/Utilities/Tango.Synchronization.UI/ViewModels/MainViewVM.cs +++ b/Software/Visual_Studio/Utilities/Tango.Synchronization.UI/ViewModels/MainViewVM.cs @@ -11,6 +11,7 @@ using System.Windows; using Tango.Logging; using Tango.SharedUI; using Tango.SharedUI.Commands; +using Tango.Synchronization.Local; namespace Tango.Synchronization.UI.ViewModels { @@ -18,7 +19,7 @@ namespace Tango.Synchronization.UI.ViewModels { private String _masterDBFile; private String _slaveDBFile; - private SqlDataBaseComparer _comparer; + private LocalDBComparer _comparer; #region Properties @@ -52,21 +53,21 @@ namespace Tango.Synchronization.UI.ViewModels set { _log = value; RaisePropertyChanged(nameof(Log)); } } - private ObservableCollection<SqlDiff> _differences; + private ObservableCollection<Diff> _differences; /// <summary> /// Gets or sets the differences. /// </summary> - public ObservableCollection<SqlDiff> Differences + public ObservableCollection<Diff> Differences { get { return _differences; } set { _differences = value; RaisePropertyChanged(nameof(Differences)); } } - private SqlDiff _selectedDifference; + private Diff _selectedDifference; /// <summary> /// Gets or sets the selected difference. /// </summary> - public SqlDiff SelectedDifference + public Diff SelectedDifference { get { return _selectedDifference; } set { _selectedDifference = value; RaisePropertyChanged(nameof(SelectedDifference)); InvalidateRelayCommands(); } @@ -140,7 +141,7 @@ namespace Tango.Synchronization.UI.ViewModels LogManager.Log("DB Synchronizer Started!"); - Differences = new ObservableCollection<SqlDiff>(); + Differences = new ObservableCollection<Diff>(); BrowseMasterDBCommand = new RelayCommand(BrowseMasterDB); BrowseSlaveDBCommand = new RelayCommand(BrowseSlaveDB); @@ -162,7 +163,7 @@ namespace Tango.Synchronization.UI.ViewModels private void Compare() { - _comparer = new SqlDataBaseComparer(new SqliteDataBase(_masterDBFile), new SqliteDataBase(_slaveDBFile)); + _comparer = new LocalDBComparer(new SQLiteDataBase(_masterDBFile), new SQLiteDataBase(_slaveDBFile)); OpenStatus("Comparing DataBase..."); @@ -172,7 +173,7 @@ namespace Tango.Synchronization.UI.ViewModels { Thread.Sleep(1500); var diffs = _comparer.Compare(); - Differences = new ObservableCollection<SqlDiff>(diffs); + Differences = new ObservableCollection<Diff>(diffs); } catch (Exception ex) { |
